update list of available sanitizers for Fedora 40 and GCC 14
This commit is contained in:
@ -102,9 +102,9 @@ endif()
|
|||||||
#######################################
|
#######################################
|
||||||
# select code sanitizer options
|
# select code sanitizer options
|
||||||
#######################################
|
#######################################
|
||||||
set(ENABLE_SANITIZER "none" CACHE STRING "Select a code sanitizer option (none (default), address, leak, thread, undefined)")
|
set(ENABLE_SANITIZER "none" CACHE STRING "Select a code sanitizer option (none (default), address, hwaddress, leak, thread, undefined)")
|
||||||
mark_as_advanced(ENABLE_SANITIZER)
|
mark_as_advanced(ENABLE_SANITIZER)
|
||||||
set(ENABLE_SANITIZER_VALUES none address leak thread undefined)
|
set(ENABLE_SANITIZER_VALUES none address hwaddress leak thread undefined)
|
||||||
set_property(CACHE ENABLE_SANITIZER PROPERTY STRINGS ${ENABLE_SANITIZER_VALUES})
|
set_property(CACHE ENABLE_SANITIZER PROPERTY STRINGS ${ENABLE_SANITIZER_VALUES})
|
||||||
validate_option(ENABLE_SANITIZER ENABLE_SANITIZER_VALUES)
|
validate_option(ENABLE_SANITIZER ENABLE_SANITIZER_VALUES)
|
||||||
string(TOLOWER ${ENABLE_SANITIZER} ENABLE_SANITIZER)
|
string(TOLOWER ${ENABLE_SANITIZER} ENABLE_SANITIZER)
|
||||||
|
|||||||
@ -88,8 +88,8 @@ on recording all commands required to do the compilation.
|
|||||||
|
|
||||||
.. _sanitizer:
|
.. _sanitizer:
|
||||||
|
|
||||||
Address, Undefined Behavior, and Thread Sanitizer Support (CMake only)
|
Address, Leak, Undefined Behavior, and Thread Sanitizer Support (CMake only)
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------------
|
||||||
|
|
||||||
Compilers such as GCC and Clang support generating instrumented binaries
|
Compilers such as GCC and Clang support generating instrumented binaries
|
||||||
which use different sanitizer libraries to detect problems in the code
|
which use different sanitizer libraries to detect problems in the code
|
||||||
@ -110,6 +110,7 @@ compilation and linking stages. This is done through setting the
|
|||||||
|
|
||||||
-D ENABLE_SANITIZER=none # no sanitizer active (default)
|
-D ENABLE_SANITIZER=none # no sanitizer active (default)
|
||||||
-D ENABLE_SANITIZER=address # enable address sanitizer / memory leak checker
|
-D ENABLE_SANITIZER=address # enable address sanitizer / memory leak checker
|
||||||
|
-D ENABLE_SANITIZER=hwaddress # enable hardware assisted address sanitizer / memory leak checker
|
||||||
-D ENABLE_SANITIZER=leak # enable memory leak checker (only)
|
-D ENABLE_SANITIZER=leak # enable memory leak checker (only)
|
||||||
-D ENABLE_SANITIZER=undefined # enable undefined behavior sanitizer
|
-D ENABLE_SANITIZER=undefined # enable undefined behavior sanitizer
|
||||||
-D ENABLE_SANITIZER=thread # enable thread sanitizer
|
-D ENABLE_SANITIZER=thread # enable thread sanitizer
|
||||||
|
|||||||
Reference in New Issue
Block a user