Skip to content

Commit e6f4de7

Browse files
committed
Revert "Add Analyze Compile Flags (#3321)"
This reverts commit fdf41a9.
1 parent fdf41a9 commit e6f4de7

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

indra/cmake/00-Common.cmake

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,6 @@ if (LINUX)
176176
-lm
177177
)
178178
endif()
179-
180-
if (CMAKE_BUILD_TYPE MATCHES "RelWithDebInfo")
181-
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
182-
add_compile_options(--analyze)
183-
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
184-
add_compile_options(-fanalyzer)
185-
endif ()
186-
endif ()
187179
endif (LINUX)
188180

189181
if (DARWIN)
@@ -207,10 +199,6 @@ if (DARWIN)
207199
# required for clang-15/xcode-15 since our boost package still uses deprecated std::unary_function/binary_function
208200
# see https://developer.apple.com/documentation/xcode-release-notes/xcode-15-release-notes#C++-Standard-Library
209201
add_compile_definitions(_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION)
210-
211-
if (CMAKE_BUILD_TYPE MATCHES "RelWithDebInfo")
212-
add_compile_options(--analyze)
213-
endif ()
214202
endif(DARWIN)
215203

216204
if(LINUX OR DARWIN)
@@ -226,8 +214,4 @@ if(LINUX OR DARWIN)
226214

227215
add_compile_options(${GCC_WARNINGS})
228216
add_compile_options(-m${ADDRESS_SIZE})
229-
230-
if (CMAKE_BUILD_TYPE MATCHES "RelWithDebInfo")
231-
add_compile_options(-fno-omit-frame-pointer -fsanitize=undefined -fsanitize=bounds)
232-
endif ()
233217
endif (LINUX OR DARWIN)

0 commit comments

Comments
 (0)