| description | Learn more about the /INFERASANLIBS (Use inferred sanitizer libs) linker option | ||
|---|---|---|---|
| title | /INFERASANLIBS (Use inferred sanitizer libs) | ||
| ms.date | 03/01/2021 | ||
| f1_keywords |
|
||
| helpviewer_keywords |
|
Use the /INFERASANLIBS linker option to enable or disable linking to the default AddressSanitizer libraries. As of Visual Studio 2019 16.9, the only supported sanitizer is AddressSanitizer.
/INFERASANLIBS[:NO]
The /INFERASANLIBS linker option enables the default AddressSanitizer libraries. This option is enabled by default.
The /INFERASANLIBS and /INFERASANLIBS:NO linker options offer support for advanced users. For more information, see AddressSanitizer build and language reference.
The /INFERASANLIBS option is available beginning in Visual Studio 2019 version 16.9.
-
Open your project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.
-
Select the Configuration Properties > Linker > Command Line property page.
-
Modify the Additional Options property. To enable default libraries, enter /INFERASANLIBS in the edit box. To disable default libraries, enter /INFERASANLIBS:NO instead.
-
Choose OK or Apply to save your changes.
- See xref:Microsoft.VisualStudio.VCProjectEngine.VCLinkerTool.AdditionalOptions%2A.
MSVC linker reference
MSVC linker options
/fsanitize (Enable sanitizers)
AddressSanitizer overview
AddressSanitizer known issues
AddressSanitizer build and language reference