From 5c1db8fb02fad5c77a6630209bdf763cd192e17f Mon Sep 17 00:00:00 2001 From: Raymond Zhao <7199958+rzhao271@users.noreply.github.com> Date: Mon, 6 Mar 2023 08:52:38 -0800 Subject: [PATCH] fix: use SpectreMitigation attribute (#23) --- binding.gyp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/binding.gyp b/binding.gyp index 0d8c14c..9d39de1 100644 --- a/binding.gyp +++ b/binding.gyp @@ -48,11 +48,13 @@ "libraries": [ "userenv.lib" ], + "msvs_configuration_attributes": { + "SpectreMitigation": "Spectre" + }, "msvs_settings": { "VCCLCompilerTool": { "ExceptionHandling": 1, 'AdditionalOptions': [ - '/Qspectre', '/guard:cf', '-std:c++17', '/we4244',