From: Paul Durrant Date: Mon, 29 Jan 2018 16:50:54 +0000 (+0000) Subject: Do more optimization in release builds and add /Qspectre flag X-Git-Tag: 9.0.0-rc1~12 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=429e0f924fb2bdd463fc32c9a779b828225d5eb4;p=pvdrivers%2Fwin%2Fxennet.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/xennet/xennet.vcxproj b/vs2017/xennet/xennet.vcxproj index f20bf31..387cdf5 100644 --- a/vs2017/xennet/xennet.vcxproj +++ b/vs2017/xennet/xennet.vcxproj @@ -23,9 +23,10 @@ __MODULE__="XENNET";NDIS_MINIPORT_DRIVER;NDIS_WDM=1;NDIS61_MINIPORT=1;POOL_NX_OPTIN=1;NT_PROCESSOR_GROUPS;%(PreprocessorDefinitions) + true $(WindowsSdkDir)\include\km;..\..\include;..\..\include\xen; EnableAllWarnings - 4464;4711;4548;4820;4668;4255;6001;6054;28160;28196;30030;30029;%(DisableSpecificWarnings) + 4464;4711;4770;4548;4820;4668;4255;6001;6054;28160;28196;30030;30029;%(DisableSpecificWarnings) true true @@ -35,7 +36,7 @@ false $(DDK_LIB_PATH)\ndis.lib;$(DDK_LIB_PATH)/libcntpr.lib;$(DDK_LIB_PATH)/aux_klib.lib;$(DDK_LIB_PATH)/procgrp.lib;%(AdditionalDependencies) - false + UseLinkTimeCodeGeneration true @@ -60,7 +61,14 @@ amd64 - + + + Speed + true + /Qspectre %(AdditionalOptions) + + +