diff options
author | Simon Rozman <simon@rozman.si> | 2021-07-12 18:44:32 +0200 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2021-07-12 18:44:32 +0200 |
commit | f4906db06fa402959e5bae213562d20882d4090b (patch) | |
tree | 0dc28ad7deaa64e0fca1f566020fe15984463b1a /driver | |
parent | driver: cleanup project file (diff) | |
download | wintun-sr/sdv.tar.xz wintun-sr/sdv.zip |
driver: workaround SDV failure with code analysissr/sdv
SDV is using own CL.EXE which returns error code 2 when code analysis
is turned on. However, we need code analysis results for DVL.
While we could use a new "ReleaseSDV" configuration, we don't really
require limited code analysis in Release builds, as long as we address
all full code analysis warnings in Debug builds.
To make DVL happier, an intermediate Release build was injected with
code analysis turned on.
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to '')
-rw-r--r-- | driver/driver.vcxproj | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/driver/driver.vcxproj b/driver/driver.vcxproj index 7d9dd73..1a93f01 100644 --- a/driver/driver.vcxproj +++ b/driver/driver.vcxproj @@ -79,19 +79,20 @@ <_ProjectFileVersion>15.0.28127.55</_ProjectFileVersion> <IntDir>..\$(Configuration)\$(WintunPlatform)\$(ProjectName)-intermediate\</IntDir> <OutDir>..\$(ConfigurationName)\$(WintunPlatform)\</OutDir> - <RunCodeAnalysis>true</RunCodeAnalysis> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)'=='Release'"> - <CodeAnalysisRuleSet>$(WDKContentRoot)CodeAnalysis\DriverMustFixRules.ruleset</CodeAnalysisRuleSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)'=='Debug'"> + <RunCodeAnalysis>true</RunCodeAnalysis> + </PropertyGroup> + <PropertyGroup Condition="'$(RunCodeAnalysis)'=='true'"> <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> + <ClCompile> + <EnablePREfast>true</EnablePREfast> + </ClCompile> </PropertyGroup> <ItemDefinitionGroup> <ClCompile> <PreprocessorDefinitions>NDIS_MINIPORT_DRIVER=1;NDIS620_MINIPORT=1;NDIS683_MINIPORT=1;NDIS_WDM=1;%(PreprocessorDefinitions)</PreprocessorDefinitions> <AdditionalOptions>/volatile:iso %(AdditionalOptions)</AdditionalOptions> - <EnablePREfast>true</EnablePREfast> </ClCompile> <ResourceCompile> <PreprocessorDefinitions>NDIS_MINIPORT_DRIVER=1;NDIS620_MINIPORT=1;NDIS683_MINIPORT=1;NDIS_WDM=1;%(PreprocessorDefinitions)</PreprocessorDefinitions> |