Opened 12 years ago

#5020 new Bugs

build.bat selects incorrect toolset

Reported by: webstech@… Owned by:
Milestone: To Be Determined Component: Building Boost
Version: Boost 1.45.0 Severity: Problem
Keywords: Cc:

Description

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):

if not errorlevel 1 set FOUND_PATH=%~dp$PATH:1
to:
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.

Change History (0)

Note: See TracTickets for help on using tickets.