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

Allow BoostBuild.py to find bjam both in parent directory (for releases)

and in parent's parent directory (for CVS testing).


[SVN r20540]
This commit is contained in:
Vladimir Prus
2003-10-29 11:18:47 +00:00
parent 0fd4fc7710
commit 4566ffe228

View File

@@ -102,13 +102,25 @@ class Tester(TestCmd.TestCmd):
program_list = []
# Find there jam_src is located.
# try for the debug version if it's lying around
if os.path.exists(
os.path.join('../..', 'jam_src', jam_build_dir + '.debug')
):
jam_build_dir += '.debug'
dirs = [os.path.join('../../jam_src', jam_build_dir + '.debug'),
os.path.join('../../jam_src', jam_build_dir),
os.path.join('../jam_src', jam_build_dir + '.debug'),
os.path.join('../jam_src', jam_build_dir),
]
for d in dirs:
if os.path.exists(d):
jam_build_dir = d
break
else:
print "Cannot find built Boost.Jam"
exit(1)
program_list.append(os.path.join('../..', 'jam_src', jam_build_dir, executable))
program_list.append(os.path.join(jam_build_dir, executable))
program_list.append('-sBOOST_BUILD_PATH=' + boost_build_path)
if verbosity:
program_list += verbosity