summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-01-26 16:21:26 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-01-26 16:21:26 (GMT)
commit0bdf18bb06b67fc569222afb7131a86ab410165a (patch)
treeefd2be005e9dcf5e95f3c9d4837b32d18a459e1d /config
parentd976b679985eebd84e34ad02271f534b0ba7f8d0 (diff)
downloadhdf5-0bdf18bb06b67fc569222afb7131a86ab410165a.zip
hdf5-0bdf18bb06b67fc569222afb7131a86ab410165a.tar.gz
hdf5-0bdf18bb06b67fc569222afb7131a86ab410165a.tar.bz2
Only use sanitizers with clang
Diffstat (limited to 'config')
-rw-r--r--config/sanitizer/sanitizers.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/sanitizer/sanitizers.cmake b/config/sanitizer/sanitizers.cmake
index 7a6c195..2625ec3 100644
--- a/config/sanitizer/sanitizers.cmake
+++ b/config/sanitizer/sanitizers.cmake
@@ -28,7 +28,7 @@ function(append value)
endforeach(variable)
endfunction()
-if(USE_SANITIZER)
+if(USE_SANITIZER AND "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
append("-fno-omit-frame-pointer" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)