Add toolset bin dir to path to hopefully get mingw working.

This commit is contained in:
Rene Rivera
2017-05-28 16:38:28 -05:00
parent a17344b7fd
commit 34045a561a

View File

@@ -139,7 +139,15 @@ using python : %(pyversion)s : "%(python)s" ;
# Set up tools.
utils.makedirs(os.path.join(self.build_dir,'dist','bin'))
os.environ['PATH'] = os.path.join(self.build_dir,'dist','bin')+os.pathsep+os.environ['PATH']
if not isinstance(self.ci, ci_cli) and toolset_info[self.toolset]['command']:
os.environ['PATH'] = os.pathsep.join([
os.path.dirname(toolset_info[self.toolset]['command']),
os.path.join(self.build_dir,'dist','bin'),
os.environ['PATH']])
else:
os.environ['PATH'] = os.pathsep.join([
os.path.join(self.build_dir,'dist','bin'),
os.environ['PATH']])
os.environ['BOOST_BUILD_PATH'] = self.build_dir
# Bootstrap Boost Build engine.