#538 The build_vsXX.cmd scripts eventually fail because of enviro

Platform_Specific
closed
nobody
5
2012-09-14
2012-06-28
No

The build_vs100.cmd (for example) calls into another script which sets some environment variables, and appends others (adding to %PATH% and %LIB% for instance).

If it's run too many times, the variables eventually exceed the Windows limit and the scripts fail.

Trivial fix: don't export changes into caller's environment, i.e. the first 2 lines of the script should be:

@echo off
setlocal
...

Discussion

  • Alex Fabijanic
    Alex Fabijanic
    2012-07-17

    setlocal is set in the buildwin.cmd