diff options
author | Sam Lantinga <slouken@libsdl.org> | 2021-01-31 19:11:49 -0800 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2021-01-31 19:11:49 -0800 |
commit | dd7e0cae7fdb86f52dfcc6275181798369757433 (patch) | |
tree | b19c61937bbd15c45c916b91c4462e45842f1210 | |
parent | c7885753043f4daa307dc4a259ed9c941709fbf7 (diff) | |
download | sdl-dd7e0cae7fdb86f52dfcc6275181798369757433.tar.gz |
Don't enable address sanitize flags without checking compiler first
-rw-r--r-- | CMakeLists.txt | 17 |
1 files changed, 0 insertions, 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) |