Allow sanitize{} for VS2019
This commit is contained in:
parent
9befc96f88
commit
519e6a99fe
@ -359,7 +359,7 @@
|
||||
--
|
||||
|
||||
function suite.onSanitizeAddress()
|
||||
p.action.set("vs2022")
|
||||
p.action.set("vs2019")
|
||||
sanitize { "Address" }
|
||||
prepare()
|
||||
test.capture [[
|
||||
@ -367,14 +367,14 @@ function suite.onSanitizeAddress()
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<EnableASAN>true</EnableASAN>
|
||||
</PropertyGroup>
|
||||
]]
|
||||
end
|
||||
|
||||
function suite.onSanitizeAddress_BeforeVS2022()
|
||||
p.action.set("vs2019")
|
||||
function suite.onSanitizeAddress_BeforeVS2019()
|
||||
p.action.set("vs2017")
|
||||
sanitize { "Address" }
|
||||
prepare()
|
||||
test.capture [[
|
||||
@ -382,27 +382,12 @@ function suite.onSanitizeAddress_BeforeVS2022()
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
]]
|
||||
end
|
||||
|
||||
function suite.onSanitizeFuzzer()
|
||||
p.action.set("vs2022")
|
||||
sanitize { "Fuzzer" }
|
||||
prepare()
|
||||
test.capture [[
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<EnableFuzzer>true</EnableFuzzer>
|
||||
</PropertyGroup>
|
||||
]]
|
||||
end
|
||||
|
||||
function suite.onSanitizeFuzzer_BeforeVS2022()
|
||||
p.action.set("vs2019")
|
||||
sanitize { "Fuzzer" }
|
||||
prepare()
|
||||
@ -412,12 +397,27 @@ function suite.onSanitizeFuzzer_BeforeVS2022()
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<EnableFuzzer>true</EnableFuzzer>
|
||||
</PropertyGroup>
|
||||
]]
|
||||
end
|
||||
|
||||
function suite.onSanitizeFuzzer_BeforeVS2019()
|
||||
p.action.set("vs2017")
|
||||
sanitize { "Fuzzer" }
|
||||
prepare()
|
||||
test.capture [[
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
]]
|
||||
end
|
||||
|
||||
function suite.onSanitizeAddressFuzzer()
|
||||
p.action.set("vs2022")
|
||||
p.action.set("vs2019")
|
||||
sanitize { "Address", "Fuzzer" }
|
||||
prepare()
|
||||
test.capture [[
|
||||
@ -425,7 +425,7 @@ function suite.onSanitizeAddressFuzzer()
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<EnableASAN>true</EnableASAN>
|
||||
<EnableFuzzer>true</EnableFuzzer>
|
||||
</PropertyGroup>
|
||||
|
@ -2509,7 +2509,7 @@
|
||||
end
|
||||
|
||||
function m.sanitizers(cfg)
|
||||
if _ACTION >= "vs2022" and cfg.sanitize then
|
||||
if _ACTION >= "vs2019" and cfg.sanitize then
|
||||
if table.contains(cfg.sanitize, "Address") then
|
||||
m.element("EnableASAN", nil, "true")
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user