Skip to main content

sanitize

Enables various fsanitize options for compilers.

sanitize { "value_list" }

Parameters

value_list specifies the desired fsanitize options to enable.

ValueDescriptionNotes
AddressEnables compiler support for AddressSanitizer (ASan).Visual Studio support starts with 2019 16.9
FuzzerEnables support for LibFuzzer, a coverage-guided fuzzing library.Unsupported with GCC. Visual Studio support starts with 2019 16.9
ThreadEnables compiler support for ThreadSanitizer (TSan).GCC & Clang only
UndefinedBehaviorEnables compiler support for UndefinedBehaviorSanitizer (UBSan).GCC & Clang only

Applies To

Project configurations.

Availability

Premake 5.0 or later.

Examples

sanitize { "Address", "Fuzzer" }