From: Paul Durrant Date: Tue, 30 Jan 2018 10:15:00 +0000 (+0000) Subject: Do more optimization in release builds and add /Qspectre flag X-Git-Tag: 9.0.0-rc1~25 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=2e0fd6f78f4657d34b1a0cea5ffd904a4a0ddcae;p=pvdrivers%2Fwin%2Fxeniface.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/xeniface/xeniface.vcxproj b/vs2017/xeniface/xeniface.vcxproj index d63ddc7..69a4b09 100644 --- a/vs2017/xeniface/xeniface.vcxproj +++ b/vs2017/xeniface/xeniface.vcxproj @@ -22,8 +22,9 @@ $(WindowsSdkDir)\include\km;..\..\include; __MODULE__="XENIFACE";POOL_NX_OPTIN=1;NT_PROCESSOR_GROUPS;%(PreprocessorDefinitions) + true EnableAllWarnings - 4464;4711;4548;4820;4668;4255;6001;6054;28160;30030;30029;%(DisableSpecificWarnings) + 4464;4711;4548;4770;4820;4668;4255;6001;6054;28160;30030;30029;%(DisableSpecificWarnings) true true @@ -33,7 +34,7 @@ false $(DDK_LIB_PATH)\ntstrsafe.lib;$(DDK_LIB_PATH)\procgrp.lib;%(AdditionalDependencies) - false + UseLinkTimeCodeGeneration true @@ -58,6 +59,13 @@ amd64 + + + Speed + true + /Qspectre %(AdditionalOptions) + +