From b7f711cd76ba925fa62bdbedd0b9ce01c065b5cf Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 31 Jan 2021 19:11:49 -0800 Subject: [PATCH] Don't enable address sanitize flags without checking compiler first --- CMakeLists.txt | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cf3aa20fb..40ddc0d03 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2323,23 +2323,6 @@ if(SDL_STATIC) endif() endif() -set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} \ - -fsanitize=address \ - -fsanitize=bool \ - -fsanitize=bounds \ - -fsanitize=enum \ - -fsanitize=float-cast-overflow \ - -fsanitize=float-divide-by-zero \ - -fsanitize=nonnull-attribute \ - -fsanitize=returns-nonnull-attribute \ - -fsanitize=signed-integer-overflow \ - -fsanitize=undefined \ - -fsanitize=vla-bound \ - -fno-sanitize=alignment \ - -fsanitize=leak \ - -fsanitize=object-size \ -") - ##### Tests ##### if(SDL_TEST)