Skip to content

Commit

Permalink
Disable some advanced UBSan sub-options
Browse files Browse the repository at this point in the history
... not recognized by GCC 8.1
  • Loading branch information
iakov authored Jun 6, 2024
1 parent f43d35b commit b780312
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions global.pri
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,11 @@ equals(TEMPLATE, lib) {
}

sanitize_undefined {
TRIK_SANITIZE_UNDEFINED_FLAGS += \
-fsanitize=undefined,float-divide-by-zero,unsigned-integer-overflow,implicit-conversion,local-bounds
#TRIK_SANITIZE_UNDEFINED_FLAGS += \
#-fsanitize=undefined,float-divide-by-zero,unsigned-integer-overflow,implicit-conversion,local-bounds

# This hack allows to avoid runtime dependency.
win32:TRIK_SANITIZE_UNDEFINED_FLAGS += -fsanitize-trap=undefined
win32:TRIK_SANITIZE_UNDEFINED_FLAGS += -fsanitize-trap=all

QMAKE_SANITIZE_UNDEFINED_CFLAGS *= $$TRIK_SANITIZE_UNDEFINED_FLAGS
QMAKE_SANITIZE_UNDEFINED_CXXFLAGS *= $$TRIK_SANITIZE_UNDEFINED_FLAGS
Expand Down

0 comments on commit b780312

Please sign in to comment.