diff --git a/base/tools/make.js b/base/tools/make.js index dbb32d01..27b02df7 100644 --- a/base/tools/make.js +++ b/base/tools/make.js @@ -704,13 +704,19 @@ class VisualStudioExporter extends Exporter { this.p('', indent + 1); this.p('' + includes + '', indent + 2); - this.p('-Wno-deprecated-declarations -Wno-c23-extensions -Wno-incompatible-pointer-types -Wno-incompatible-function-pointer-types -Wno-microsoft-enum-forward-reference /bigobj %(AdditionalOptions)', indent + 2); + let additionalOptions = + '-Wno-deprecated-declarations -Wno-c23-extensions -Wno-incompatible-pointer-types -Wno-incompatible-function-pointer-types -Wno-microsoft-enum-forward-reference /bigobj'; + if (config === 'Release') { + additionalOptions += ' /Gw'; + } + this.p('' + additionalOptions + ' %(AdditionalOptions)', indent + 2); this.p('Level3', indent + 2); this.p('' + this.get_optimization(config) + '', indent + 2); if (config === 'Release') { this.p('true', indent + 2); this.p('true', indent + 2); + this.p('None', indent + 2); } this.p('' + (config === 'Release' ? releaseDefines : debugDefines) + ((system === 'x64') ? 'SYS_64;' : '') + 'WIN32;_WINDOWS;%(PreprocessorDefinitions)', @@ -734,7 +740,7 @@ class VisualStudioExporter extends Exporter { else { this.p('Windows', indent + 2); } - this.p('true', indent + 2); + this.p('' + (config === 'Release' ? 'false' : 'true') + '', indent + 2); if (config === 'Release') { this.p('true', indent + 2); this.p('true', indent + 2);