Subject: [Boost-bugs] [Boost C++ Libraries] #5020: build.bat selects incorrect toolset
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-12-24 13:21:48
#5020: build.bat selects incorrect toolset
--------------------------------+-------------------------------------------
Reporter: webstech@⦠| Owner:
Type: Bugs | Status: new
Milestone: To Be Determined | Component: Building Boost
Version: Boost 1.45.0 | Severity: Problem
Keywords: |
--------------------------------+-------------------------------------------
Building on Win7 64-bit. In function ''':Test_Path''', statement ''set
test=%~$PATH:1'' is not getting errorlevel 1 when the file is not found
(win7 bug?). This results in msvc being selected as the toolset. As a
workaround, I changed the line (in Test_PATH):[[BR]]
''if not errorlevel 1 set FOUND_PATH=%~dp$PATH:1''
[[BR]]to:[[BR]]
''if not errorlevel 1 if _%test% NEQ _ set FOUND_PATH=%~dp$PATH:1''
All callers of Test_Path were also changed to test FOUND_PATH for a value.
A cleaner solution may be able to remove the errorlevel 1 tests.
...chris.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5020> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:05 UTC