瀏覽代碼

Don't enable address sanitize flags without checking compiler first

Sam Lantinga 5 年之前
父節點
當前提交
b7f711cd76
共有 1 個文件被更改,包括 0 次插入17 次删除
  1. 0 17
      CMakeLists.txt

+ 0 - 17
CMakeLists.txt

@@ -2323,23 +2323,6 @@ if(SDL_STATIC)
   endif()
   endif()
 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 #####
 ##### Tests #####
 
 
 if(SDL_TEST)
 if(SDL_TEST)