From 285666e91e4ea04bdf7019bf56ab2fd1a642c5c5 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] --- v2/build/project.jam | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v2/build/project.jam b/v2/build/project.jam index 88534f6a7..960d1283e 100644 --- a/v2/build/project.jam +++ b/v2/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)) ; }