summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorEugene Kosov <claprix@yandex.ru>2021-03-24 13:17:49 +0300
committerEugene Kosov <claprix@yandex.ru>2021-03-26 16:29:58 +0300
commit36a05268e7059163752ab91d1cbe1180dbd90b93 (patch)
treeb601d335de419d5859363411f7b1c452dce1455e /CMakeLists.txt
parentdfae51de361a1604a97d93181df5e8669a1c2f85 (diff)
downloadmariadb-git-36a05268e7059163752ab91d1cbe1180dbd90b93.tar.gz
cmake cleanup: drop support for ancient clang in WITH_ASAN option
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
1 files changed, 0 insertions, 10 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ab5959da7b9..80f87af2cb5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -196,7 +196,6 @@ OPTION(WITH_ASAN "Enable address sanitizer" OFF)
IF (WITH_ASAN)
# this flag might be set by default on some OS
MY_CHECK_AND_SET_COMPILER_FLAG("-U_FORTIFY_SOURCE" DEBUG RELWITHDEBINFO)
- # gcc 4.8.1 and new versions of clang
MY_CHECK_AND_SET_COMPILER_FLAG("-fsanitize=address -fPIC"
DEBUG RELWITHDEBINFO)
SET(HAVE_C_FSANITIZE ${have_C__fsanitize_address__fPIC})
@@ -209,15 +208,6 @@ IF (WITH_ASAN)
"-fsanitize=address -fsanitize-address-use-after-scope"
DEBUG RELWITHDEBINFO)
ENDIF()
- ELSE()
- # older versions of clang
- MY_CHECK_AND_SET_COMPILER_FLAG("-faddress-sanitizer -fPIC"
- DEBUG RELWITHDEBINFO)
- SET(HAVE_C_FADDRESS ${have_C__faddress_sanitizer__fPIC})
- SET(HAVE_CXX_FADDRESS ${have_CXX__faddress_sanitizer__fPIC})
- IF(HAVE_C_FADDRESS AND HAVE_CXX_FADDRESS)
- SET(WITH_ASAN_OK 1)
- ENDIF()
ENDIF()
IF(NOT WITH_ASAN_OK)