summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-01-26 16:22:23 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-01-26 16:22:23 (GMT)
commit38f73eba058778ae09f8375e0250e6b98b62b33a (patch)
tree14e651f179013c119d669d45c5cda4794d7bcda7 /config
parent6bf5c4bdeab14afef33a7f47bfbe4f3f0020ae3e (diff)
downloadhdf5-38f73eba058778ae09f8375e0250e6b98b62b33a.zip
hdf5-38f73eba058778ae09f8375e0250e6b98b62b33a.tar.gz
hdf5-38f73eba058778ae09f8375e0250e6b98b62b33a.tar.bz2
Only use sanitzers 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)