diff --git a/binding.gyp b/binding.gyp index 21c96bb..36c936d 100644 --- a/binding.gyp +++ b/binding.gyp @@ -8,6 +8,10 @@ "sources": [ "src/iselevated.cc" ], + "cflags": [ + "-O2", + "-D_FORTIFY_SOURCE=2", + ], "msvs_configuration_attributes": { "SpectreMitigation": "Spectre" }, @@ -15,6 +19,7 @@ "VCCLCompilerTool": { "AdditionalOptions": [ "/guard:cf", + "/W3", "/we4244", "/we4267", "/ZH:SHA_256" @@ -22,6 +27,7 @@ }, "VCLinkerTool": { "AdditionalOptions": [ + "/DYNAMICBASE", "/guard:cf" ] }