diff options
author | Albert Astals Cid <aacid@kde.org> | 2015-09-25 17:43:49 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2015-09-25 17:45:02 +0200 |
commit | 1c20edb86115ecf788f64cb8563b85129c7a669d (patch) | |
tree | 8899f9186bccdb421985fd82d3bd0dda3b8f3923 /modules | |
parent | d4bcaf7eb3ff501ad0a5f06ed0724964e0e0f404 (diff) | |
download | extra-cmake-modules-1c20edb86115ecf788f64cb8563b85129c7a669d.tar.gz extra-cmake-modules-1c20edb86115ecf788f64cb8563b85129c7a669d.tar.bz2 |
ECMEnableSanitizers: The undefined sanitizer is supported by gcc 4.9
Diffstat (limited to 'modules')
-rw-r--r-- | modules/ECMEnableSanitizers.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ECMEnableSanitizers.cmake b/modules/ECMEnableSanitizers.cmake index d55b2525..e64599b6 100644 --- a/modules/ECMEnableSanitizers.cmake +++ b/modules/ECMEnableSanitizers.cmake @@ -125,7 +125,7 @@ macro (enable_sanitizer_flags sanitize_option) set(XSAN_COMPILE_FLAGS "-fsanitize=leak") set(XSAN_LINKER_FLAGS "lsan") elseif (${sanitize_option} MATCHES "undefined") - check_compiler_version("99.99" "3.1") + check_compiler_version("4.9" "3.1") set(XSAN_COMPILE_FLAGS "-fsanitize=undefined -fno-omit-frame-pointer -fno-optimize-sibling-calls") else () message(FATAL_ERROR "Compiler sanitizer option \"${sanitize_option}\" not supported.") |