Files
mash/toolchain/sanitize.cmake
haxala1r 2dd10e08d9
Some checks failed
ci/woodpecker/push/workflow Pipeline failed
Added toolchain file for sanitized builds
2025-10-02 17:56:30 +03:00

5 lines
324 B
CMake

# We're assuming clang or gcc as the compiler.
# feel free to change if you're using msvc or something else
set(SANITIZERS_FLAGS "-fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all -fno-omit-frame-pointer")
set(CMAKE_CXX_FLAGS_INIT "${SANITIZERS_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS_INIT "${SANITIZERS_FLAGS}")