From 4201e366acfaf167e82d87de2028bf3f6385e54c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurko=20Gospodneti=C4=87?= Date: Tue, 14 Aug 2012 04:54:05 +0000 Subject: [PATCH] Corrected a slight Boost Build project.module-name() rule defect causing it to not reuse its cached result value in some cases. [SVN r80021] --- src/build/project.jam | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/build/project.jam b/src/build/project.jam index 88534f6a7..960d1283e 100644 --- a/src/build/project.jam +++ b/src/build/project.jam @@ -165,8 +165,8 @@ rule module-name ( jamfile-location ) { # Root the path, so that locations are always unambiguous. Without this, # we can not decide if '../../exe/program1' and '.' are the same paths. - jamfile-location = [ path.root $(jamfile-location) [ path.pwd ] ] ; - .module.$(jamfile-location) = Jamfile<$(jamfile-location)> ; + local normalized = [ path.root $(jamfile-location) [ path.pwd ] ] ; + .module.$(jamfile-location) = Jamfile<$(normalized)> ; } return $(.module.$(jamfile-location)) ; }