-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
win, build: add arbitrary MSBuild flag option and binlog option #25994
Conversation
94eea9a
to
623ec64
Compare
Hello @jkunkee I like the idea behind the proposed change, but I think we can do it with a simpler, more generic way 🤷♂️. P.S. If you have any questions you can also feel free to contact me directly. |
/CC @nodejs/build-files @nodejs/platform-windows |
Thanks for the welcome and the review! I've reread the contributor and PR guides and will email you soon. |
4bed141
to
490f726
Compare
4edce07
to
cf0681c
Compare
Note new commit message ( |
CI: https://ci.nodejs.org/view/All/job/node-test-pull-request/20750/ ❌ (arm-fanned) @refack does your request for changes still hold? |
This change adds a 'msbuild_arg' option to vcbuild.bat that can be used to pass arbitrary flags to MSBuild. It also adds a 'binlog' flag as a shortcut 'msbuild_arg' option to enable binary logging to `%config%\node.binlog`. This is especially convenient when debugging changes to the build system. In the process of developing this change, the idea of adding 'setlocal' to the beginning of the script was rejected since other scripts in this repo rely on the exported environment variables. This change adds a note describing this.
cf0681c
to
11b5a48
Compare
@refack I believe your feedback has been addressed, I'll assume there's no problem with landing this. CI: https://ci.nodejs.org/job/node-test-pull-request/21182/ ✔️ |
This change adds a 'msbuild_arg' option to vcbuild.bat that can be used to pass arbitrary flags to MSBuild. It also adds a 'binlog' flag as a shortcut 'msbuild_arg' option to enable binary logging to `%config%\node.binlog`. This is especially convenient when debugging changes to the build system. In the process of developing this change, the idea of adding 'setlocal' to the beginning of the script was rejected since other scripts in this repo rely on the exported environment variables. This change adds a note describing this. PR-URL: #25994 Reviewed-By: João Reis <[email protected]>
Thanks, @joaocgreis! |
PR-URL: nodejs#26431 Refs: nodejs#25994 Reviewed-By: João Reis <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
This change adds a 'msbuild_arg' option to vcbuild.bat that can be used to pass arbitrary flags to MSBuild. It also adds a 'binlog' flag as a shortcut 'msbuild_arg' option to enable binary logging to `%config%\node.binlog`. This is especially convenient when debugging changes to the build system. In the process of developing this change, the idea of adding 'setlocal' to the beginning of the script was rejected since other scripts in this repo rely on the exported environment variables. This change adds a note describing this. PR-URL: nodejs#25994 Reviewed-By: João Reis <[email protected]>
PR-URL: nodejs#26431 Refs: nodejs#25994 Reviewed-By: João Reis <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
PR-URL: #26431 Refs: #25994 Reviewed-By: João Reis <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
This change adds a 'msbuild_arg' option to vcbuild.bat that can be used to pass arbitrary flags to MSBuild. It also adds a 'binlog' flag as a shortcut 'msbuild_arg' option to enable binary logging to `%config%\node.binlog`. This is especially convenient when debugging changes to the build system. In the process of developing this change, the idea of adding 'setlocal' to the beginning of the script was rejected since other scripts in this repo rely on the exported environment variables. This change adds a note describing this. PR-URL: #25994 Reviewed-By: João Reis <[email protected]>
This commit adds a 'verbose' flag to vcbuild.bat that turns on outputs
useful for build debugging, including MSBuild BinLogging and
DEBUG_HELPER logging.
It also adds a 'setlocal' call so internal environment variables no
longer leak out to the calling shell.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes[Edit: Note new commit message (
cf0681c
)]