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 /wintun.proj | |
parent | driver: cleanup project file (diff) | |
download | wintun-f4906db06fa402959e5bae213562d20882d4090b.tar.xz wintun-f4906db06fa402959e5bae213562d20882d4090b.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 'wintun.proj')
-rw-r--r-- | wintun.proj | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/wintun.proj b/wintun.proj index af42d03..76e746e 100644 --- a/wintun.proj +++ b/wintun.proj @@ -57,7 +57,7 @@ <!-- Static Driver Verifier --> - <Target Name="SDV" Outputs="driver\sdv\SDV.DVL.xml;$(Configuration)\amd64\wintun-intermediate\vc.nativecodeanalysis.all.xml"> + <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" /> </Target> <Target Name="SDVView"> @@ -69,7 +69,8 @@ --> <Target Name="DVL" DependsOnTargets="SDV" Outputs="driver\wintun.DVL.XML" - Inputs="driver\sdv\SDV.DVL.xml;$(Configuration)\amd64\wintun-intermediate\vc.nativecodeanalysis.all.xml"> + Inputs="driver\sdv\SDV.DVL.xml"> + <MSBuild Projects="driver\driver.vcxproj" Targets="Build" Properties="Configuration=$(Configuration);Platform=x64;RunCodeAnalysis=true" /> <Exec WorkingDirectory="driver" Command="msbuild.exe driver.vcxproj /t:dvl /p:Configuration=$(Configuration);Platform=x64 /nologo" /> </Target> |