Skip to content

Commit ffc1304

Browse files
authored
Merge pull request MicrosoftDocs#3476 from corob-msft/docs/corob/asan-props-file
Add EnableASAN to Known issues doc per Olga
2 parents d8c18af + 0a0b9de commit ffc1304

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/sanitizers/asan-known-issues.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ The AddressSanitizer runtime doesn't release memory back to the OS during execut
6161

6262
The *`clang_rt.asan*.dll`* runtime files are installed next to the compilers in *`%VSINSTALLDIR%\VC\Tools\MSVC\<version>\bin\<host-arch>\<target-arch>\`*. These locations are on the path in debugging sessions, and in Visual Studio developer command prompts. These files are never placed in *`C:\Windows\System32`* or *`C:\Windows\SysWOW64`*.
6363

64+
## Custom property sheet support
65+
66+
The Property Manager window in the Visual Studio IDE allows you to add custom *`.props`* files to your projects. Even though the **Enable Address Sanitizer** property (`<EnableASAN>`) is shown, it's not honored by the build. That's because the custom *`.props`* files get included after *`Microsoft.cpp.props`*, which uses the `<EnableASAN>` value to set other properties.
67+
68+
As a workaround, you can create a *`Directory.Build.props`* file in the root of your project to define the `<EnableASAN>` property. For more information, see [Customize C++ builds](/visualstudio/msbuild/customize-your-build#customize-c-builds).
69+
6470
## See also
6571

6672
[AddressSanitizer overview](./asan.md)\

0 commit comments

Comments
 (0)