Skip to content

Commit

Permalink
#1393 remove redundant compiler version checking
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Strzebonski committed Sep 30, 2021
1 parent 8ee29e2 commit 5d269b8
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions cmake/load_bundled_libraries.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,9 @@ if (vt_asan_enabled)
endif()

if (vt_ubsan_enabled)
if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" OR
CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR
(CMAKE_CXX_COMPILER_ID
STREQUAL
"GNU"
AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "4.8"))
if (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" OR
CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR
CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
message(STATUS "Building with undefined behavior sanitizer enabled")
else()
message(SEND_ERROR "Cannot use UBSan without clang or gcc >= 4.8")
Expand Down

0 comments on commit 5d269b8

Please sign in to comment.