2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-13 12:22:17 +00:00

Corrected a slight Boost Build project.module-name() rule defect causing it to not reuse its cached result value in some cases.

[SVN r80021]
This commit is contained in:
Jurko Gospodnetić
2012-08-14 04:54:05 +00:00
parent 157384906d
commit 4201e366ac

View File

@@ -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)) ;
}