Skip to content

Commit 8619c54

Browse files
char101zooba
authored andcommitted
PCbuild/build.bat: Add note about using msbuild response file. (python#1551)
Using a response file will eliminate the headache associated with batch argument/quote processing. For example I unsucessfully compiled python with visualcpptools when specifying VSInstallDir in the batch file (cannot find vcruntime.h) ```batch build.bat -p x64 -e -M --no-tkinter "/p:VCInstallDir=%VCInstallDir%" ``` but it build successfully when specifying it in a response file msbuild.rsp: ``` /p:VCInstallDir=%VCInstallDir% ```
1 parent 870f6a1 commit 8619c54

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

PCbuild/build.bat

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ echo.given.
1010
echo.
1111
echo.After the flags recognized by this script, up to 9 arguments to be passed
1212
echo.directly to MSBuild may be passed. If the argument contains an '=', the
13-
echo.entire argument must be quoted (e.g. `%~nx0 "/p:PlatformToolset=v100"`)
13+
echo.entire argument must be quoted (e.g. `%~nx0 "/p:PlatformToolset=v100"`).
14+
echo.Alternatively you can put extra flags for MSBuild in a file named
15+
echo.`msbuild.rsp` in the `PCbuild` directory, one flag per line. This file
16+
echo.will be picked automatically by MSBuild. Flags put in this file does not
17+
echo.need to be quoted. You can still use environment variables inside the
18+
echo.response file.
1419
echo.
1520
echo.Available flags:
1621
echo. -h Display this help message

0 commit comments

Comments
 (0)