1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-11-18 13:55:11 -05:00

build: Add UndefinedBehaviorSanitizer

This commit is contained in:
patrick96 2018-11-17 14:30:02 +01:00 committed by Patrick Ziegler
parent 286eac393c
commit 9aefbd5d34

View file

@ -95,7 +95,7 @@ if(NOT DEFINED CMAKE_INSTALL_INCLUDEDIR)
endif()
# Custom build type ; SANITIZE
SET(CMAKE_CXX_FLAGS_SANITIZE "-O1 -g -fsanitize=address -fno-omit-frame-pointer -fno-optimize-sibling-calls"
SET(CMAKE_CXX_FLAGS_SANITIZE "-O0 -g -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer -fno-optimize-sibling-calls"
CACHE STRING "Flags used by the C++ compiler during sanitize builds." FORCE)
SET(CMAKE_C_FLAGS_SANITIZE ""
CACHE STRING "Flags used by the C compiler during sanitize builds." FORCE)