From c1a2aaf02081d89bcde0721dd071198d5f809f2b Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Fri, 18 Jul 2003 12:57:38 +0000 Subject: [PATCH] Optimization: don't use "path" module when not needed. [SVN r19193] --- new/builtin.jam | 6 ++++-- v2/tools/builtin.jam | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) 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