From 58a8c505edcc13a92fa0444310c632334dbfb0b9 Mon Sep 17 00:00:00 2001 From: Paul Durrant Date: Mon, 29 Jan 2018 15:48:17 +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/xenvif/xenvif.vcxproj | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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) + + -- 2.39.5