props: tie code analysis to sdv hacks rather than debug builds

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2021-08-04 04:07:37 +02:00
parent 73a4cffee0
commit 82a6130341
2 changed files with 3 additions and 3 deletions

View File

@ -58,10 +58,10 @@
Static Driver Verifier
-->
<Target Name="SDV" Outputs="driver\sdv\SDV.DVL.xml">
<Exec WorkingDirectory="driver" Command="msbuild.exe driver.vcxproj /t:sdv /p:Inputs=/check:*;Configuration=$(Configuration);Platform=x64 /nologo" />
<Exec WorkingDirectory="driver" Command="msbuild.exe driver.vcxproj /t:sdv /p:Inputs=/check:*;Configuration=$(Configuration);Platform=x64;SDVHacks=true /nologo" />
</Target>
<Target Name="SDVView">
<Exec WorkingDirectory="driver" Command="msbuild.exe driver.vcxproj /t:sdv /p:Inputs=/view;Configuration=$(Configuration);Platform=x64 /nologo" />
<Exec WorkingDirectory="driver" Command="msbuild.exe driver.vcxproj /t:sdv /p:Inputs=/view;Configuration=$(Configuration);Platform=x64;SDVHacks=true /nologo" />
</Target>
<!--

View File

@ -96,7 +96,7 @@
<OutDir Condition="'$(ConfigurationType)'=='Driver'">$(IntDir)</OutDir>
<PackageDir>..\$(Configuration)\$(WintunPlatform)\$(ProjectName)\</PackageDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<PropertyGroup Condition="'$(SDVHacks)'!='true'">
<RunCodeAnalysis>true</RunCodeAnalysis>
</PropertyGroup>
<PropertyGroup Condition="'$(RunCodeAnalysis)'=='true'">