(lib)Fuzzer support for Visual Studio
Allow building (lib)Fuzzer flavor also in Visual Studio:
- https://docs.microsoft.com/lv-lv/cpp/build/reference/fsanitize?view=msvc-170
- https://github.com/microsoft/onefuzz
Basically /fsanitize=fuzzer
should create the according tag in vcxproj file:
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>NotSet</CharacterSet>
<PlatformToolset>v142</PlatformToolset>
<EnableASAN>true</EnableASAN>
<EnableFuzzer>true</EnableFuzzer>
</PropertyGroup>
Quite similar to #21081 (closed) with MR: !6881 (merged).
Mention @Hanaae-MSFT who contributed !6881 (merged).
Questions:
- It seems a bit random if / or - is used for /fsanitize. I would expect Visual Studio to want "/" and llvm to want "-" comparing it to !6881 (merged) it seemed like they use /fsanitize
Edited by Fredrik Claesson