diff --git a/new/builtin.jam b/new/builtin.jam index 1f497be20..3d8ab58ca 100644 --- a/new/builtin.jam +++ b/new/builtin.jam @@ -336,8 +336,10 @@ rule c-scanner ( includes * ) # CONSIDER: the new scoping rule seem to defeat "on target" variables. local g = [ on $(target) return $(HDRGRIST) ] ; - local b = [ path.native [ path.parent [ path.make - [ virtual-target.binding $(target) ] ] ] ] ; + local b = [ virtual-target.binding $(target) ] ; + # Note that we don't need path.parent here, since the + # result will be directly handle to bjam build engine. + b = $(b:D) ; # Attach binding of including file to included targets. # When target is directly created from virtual target diff --git a/v2/tools/builtin.jam b/v2/tools/builtin.jam index 1f497be20..3d8ab58ca 100644 --- a/v2/tools/builtin.jam +++ b/v2/tools/builtin.jam @@ -336,8 +336,10 @@ rule c-scanner ( includes * ) # CONSIDER: the new scoping rule seem to defeat "on target" variables. local g = [ on $(target) return $(HDRGRIST) ] ; - local b = [ path.native [ path.parent [ path.make - [ virtual-target.binding $(target) ] ] ] ] ; + local b = [ virtual-target.binding $(target) ] ; + # Note that we don't need path.parent here, since the + # result will be directly handle to bjam build engine. + b = $(b:D) ; # Attach binding of including file to included targets. # When target is directly created from virtual target