Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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.
Syntax
/INFERASANLIBS[:NO]
Remarks
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.
To set the /INFERASANLIBS linker option in the Visual Studio development environment
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.
To set this linker option programmatically
- See AdditionalOptions.
See also
MSVC linker reference
MSVC linker options
/fsanitize (Enable sanitizers)
AddressSanitizer overview
AddressSanitizer known issues
AddressSanitizer build and language reference