From fcc501580f8a1f8f1646b565484110193a861b57 Mon Sep 17 00:00:00 2001 From: Paul Durrant Date: Tue, 30 Jan 2018 10:54:45 +0000 Subject: [PATCH] Do more optimization in release builds and add /Qspectre flag Spectre mitigations apparently only work on optimized code. Signed-off-by: Paul Durrant --- vs2017/xenhid/xenhid.vcxproj | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/vs2017/xenhid/xenhid.vcxproj b/vs2017/xenhid/xenhid.vcxproj index ddcbe76..ca0f709 100644 --- a/vs2017/xenhid/xenhid.vcxproj +++ b/vs2017/xenhid/xenhid.vcxproj @@ -22,8 +22,9 @@ $(WindowsSdkDir)\include\km;..\..\include;..\..\include\xen;%(AdditionalIncludeDirectories) __MODULE__="XENHID";POOL_NX_OPTIN=1;NT_PROCESSOR_GROUPS;%(PreprocessorDefinitions) + true EnableAllWarnings - 4464;4711;4548;4820;4668;4255;6001;6054;28196;30030;30029;%(DisableSpecificWarnings) + 4464;4711;4548;4770;4820;4668;4255;6001;6054;28196;30030;30029;%(DisableSpecificWarnings) true true @@ -33,7 +34,7 @@ false $(DDK_LIB_PATH)/hidclass.lib;$(DDK_LIB_PATH)/Rtlver.lib;$(DDK_LIB_PATH)/libcntpr.lib;$(DDK_LIB_PATH)/aux_klib.lib;$(DDK_LIB_PATH)/ksecdd.lib;$(DDK_LIB_PATH)/procgrp.lib;%(AdditionalDependencies) - false + UseLinkTimeCodeGeneration true @@ -58,6 +59,13 @@ amd64 + + + Speed + true + /Qspectre %(AdditionalOptions) + + -- 2.39.5