summaryrefslogtreecommitdiff
path: root/Source/VSProps
diff options
context:
space:
mode:
authorShawn Hoffman <godisgovernment@gmail.com>2020-08-18 21:54:08 -0700
committerShawn Hoffman <godisgovernment@gmail.com>2021-01-10 15:11:18 -0800
commit49b9deeb03ef92844ce826bf52a4e5baeb7fca9b (patch)
tree434ffe3079b5bbe60be5012b3241a539b7aaf495 /Source/VSProps
parent79a234eff728b2aeb68c9848f2e4fe861d4f3b91 (diff)
msvc: add asan support (disabled by default)
Diffstat (limited to 'Source/VSProps')
-rw-r--r--Source/VSProps/Base.props3
-rw-r--r--Source/VSProps/Configuration.Base.props5
2 files changed, 8 insertions, 0 deletions
diff --git a/Source/VSProps/Base.props b/Source/VSProps/Base.props
index 8b3a3b6d31..79e55ef13d 100644
--- a/Source/VSProps/Base.props
+++ b/Source/VSProps/Base.props
@@ -133,6 +133,9 @@
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<Optimization>Disabled</Optimization>
</ClCompile>
+ <ClCompile Condition="'$(Configuration)'=='Debug' And '$(EnableASAN)'=='true'">
+ <BasicRuntimeChecks>Default</BasicRuntimeChecks>
+ </ClCompile>
<!--ClCompile Release-->
<ClCompile Condition="'$(Configuration)'=='Release'">
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
diff --git a/Source/VSProps/Configuration.Base.props b/Source/VSProps/Configuration.Base.props
index dfbeedf4de..928c6dad77 100644
--- a/Source/VSProps/Configuration.Base.props
+++ b/Source/VSProps/Configuration.Base.props
@@ -4,6 +4,11 @@
<PlatformToolset>v142</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
<PreferredToolArchitecture>x64</PreferredToolArchitecture>
+ <!-- To use ASAN, just uncomment this. For simplicity, you should run VS/windbg/etc
+ (including the built executables themselves) after using vcvarsall or similar to setup
+ environment, as ASAN needs access to libs and executables in the toolchain paths.
+ -->
+ <!--<EnableASAN>true</EnableASAN>-->
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration">
<UseDebugLibraries>true</UseDebugLibraries>