/INFERASANLIBS
(Use inferred sanitizer libs)
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
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho