From: Charles Date: Fri, 12 May 2017 23:23:15 +0000 (+0700) Subject: PCbuild/build.bat: Add note about using msbuild response file. (#1551) X-Git-Tag: v3.7.0a1~828 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8619c5417ceddb4165c68b9b8aacababd49b0607;p=python PCbuild/build.bat: Add note about using msbuild response file. (#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% ``` --- diff --git a/PCbuild/build.bat b/PCbuild/build.bat index fce1e4648f..aac3f7f676 100644 --- a/PCbuild/build.bat +++ b/PCbuild/build.bat @@ -10,7 +10,12 @@ echo.given. echo. echo.After the flags recognized by this script, up to 9 arguments to be passed echo.directly to MSBuild may be passed. If the argument contains an '=', the -echo.entire argument must be quoted (e.g. `%~nx0 "/p:PlatformToolset=v100"`) +echo.entire argument must be quoted (e.g. `%~nx0 "/p:PlatformToolset=v100"`). +echo.Alternatively you can put extra flags for MSBuild in a file named +echo.`msbuild.rsp` in the `PCbuild` directory, one flag per line. This file +echo.will be picked automatically by MSBuild. Flags put in this file does not +echo.need to be quoted. You can still use environment variables inside the +echo.response file. echo. echo.Available flags: echo. -h Display this help message