nwjs / nw-gyp

native addon build tool for node-webkit
MIT License
195 stars 46 forks source link

fix: configure for msvs 2015 #164

Open christianchown opened 1 month ago

christianchown commented 1 month ago

966ca060299ea3a31ccd81b35916ccb26980faed added support for VS 2017/2019, but introduced an error for VS 2015. createConfigFile is called without a vsInfo for 2015, causing

> nw-gyp configure --msvs_version=2015
...
gyp verb build/config.gypi creating config file
gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack TypeError: Cannot read property 'versionYear' of undefined

Fix is to only modify the env for windows if vsInfo is supplied