From: Paul Durrant Date: Mon, 29 Jan 2018 15:48:17 +0000 (+0000) Subject: Do more optimization in release builds and add /Qspectre flag X-Git-Tag: 9.0.0-rc1~37 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=58a8c505edcc13a92fa0444310c632334dbfb0b9;p=pvdrivers%2Fwin%2Fxenvif.git Do more optimization in release builds and add /Qspectre flag Spectre mitigations apparently only work on optimized code. Signed-off-by: Paul Durrant --- diff --git a/vs2017/xenvif/xenvif.vcxproj b/vs2017/xenvif/xenvif.vcxproj index 6bbc569..1ce7438 100644 --- a/vs2017/xenvif/xenvif.vcxproj +++ b/vs2017/xenvif/xenvif.vcxproj @@ -22,8 +22,9 @@ $(WindowsSdkDir)\include\km;..\..\include;..\..\include\xen;%(AdditionalIncludeDirectories) __MODULE__="XENVIF";POOL_NX_OPTIN=1;NT_PROCESSOR_GROUPS;%(PreprocessorDefinitions) + true EnableAllWarnings - 4464;4711;4548;4820;4668;4255;6001;6054;28196;30030;30029;%(DisableSpecificWarnings) + 4464;4711;4770;4548;4820;4668;4255;6001;6054;28196;30030;30029;%(DisableSpecificWarnings) true true @@ -33,7 +34,7 @@ false $(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) + +