Skip to content

build,tools,node-api: fix building node-api tests for Windows Debug

Currently when we run .\vcbuild Debug build-node-api-tests we are getting an error that says: "Can not find out dir, did you run configure?"

The issue is that the tools/build_addons.py hardcodes Release output path for Windows and compiling for Debug fails because the out\Release folder does not exists. For debug config we must use out\Debug path instead. This new code was introduced in PR #50737.

This PR fixes the issue by adding the new config parameter to the tools/build_addons.py which is used to find the default output directory. The vcbuild.bat is changed to pass the %config% variable to the tools/build_addons.py.

Merge request reports

Loading