diff --git a/new/builtin.jam b/new/builtin.jam index 4bec61b0e..d6b5675e0 100644 --- a/new/builtin.jam +++ b/new/builtin.jam @@ -337,10 +337,8 @@ rule c-scanner ( includes * ) # CONSIDER: the new scoping rule seem to defeat "on target" variables. local g = [ on $(target) return $(HDRGRIST) ] ; - 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) ; + local b = [ path.native [ path.parent [ path.make + [ virtual-target.binding $(target) ] ] ] ] ; # 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 4bec61b0e..d6b5675e0 100644 --- a/v2/tools/builtin.jam +++ b/v2/tools/builtin.jam @@ -337,10 +337,8 @@ rule c-scanner ( includes * ) # CONSIDER: the new scoping rule seem to defeat "on target" variables. local g = [ on $(target) return $(HDRGRIST) ] ; - 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) ; + local b = [ path.native [ path.parent [ path.make + [ virtual-target.binding $(target) ] ] ] ] ; # Attach binding of including file to included targets. # When target is directly created from virtual target