qt5base-lts/mkspecs/common/sanitize.conf
Robert Loehning 7d7e62967f configure: Explicitly enable float-divide-by-zero with ubsan
Before clang 9, it was enabled by default
when -fsanitize=undefined was set.

Pick-to: 5.15
Change-Id: I0faf3ae1901d4badc6d265fa8081185be4360636
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2020-08-07 01:21:07 +02:00

28 lines
1.1 KiB
Plaintext

#
# Qmake configuration for the GCC / Clang sanitize features
#
QMAKE_COMMON_SANITIZE_CFLAGS = -fno-omit-frame-pointer
QMAKE_COMMON_SANITIZE_CXXFLAGS = -fno-omit-frame-pointer
QMAKE_SANITIZE_ADDRESS_CFLAGS = -fsanitize=address
QMAKE_SANITIZE_ADDRESS_CXXFLAGS = -fsanitize=address
QMAKE_SANITIZE_ADDRESS_LFLAGS = -fsanitize=address
QMAKE_SANITIZE_THREAD_CFLAGS = -fsanitize=thread
QMAKE_SANITIZE_THREAD_CXXFLAGS = -fsanitize=thread
QMAKE_SANITIZE_THREAD_LFLAGS = -fsanitize=thread
QMAKE_SANITIZE_MEMORY_CFLAGS = -fsanitize=memory
QMAKE_SANITIZE_MEMORY_CXXFLAGS = -fsanitize=memory
QMAKE_SANITIZE_MEMORY_LFLAGS = -fsanitize=memory
QMAKE_SANITIZE_FUZZERNL_CFLAGS = -fsanitize=fuzzer-no-link
QMAKE_SANITIZE_FUZZERNL_CXXFLAGS = -fsanitize=fuzzer-no-link
QMAKE_SANITIZE_FUZZERNL_LFLAGS = -fsanitize=fuzzer-no-link
QMAKE_SANITIZE_UNDEFINED_CFLAGS = -fsanitize=undefined -fsanitize=float-divide-by-zero
QMAKE_SANITIZE_UNDEFINED_CXXFLAGS = -fsanitize=undefined -fsanitize=float-divide-by-zero
QMAKE_SANITIZE_UNDEFINED_LFLAGS = -fsanitize=undefined -fsanitize=float-divide-by-zero