summaryrefslogtreecommitdiffstats
path: root/config/sanitizer
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-01-26 16:19:17 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-01-26 16:19:17 (GMT)
commit7e52c4a1e1e1d62e5d920b0abc2246d4395f3682 (patch)
tree8cfffd1cb3309cebe62de5eda36816666dfbf8ca /config/sanitizer
parent87a8951fa0e573f49d964dd50e3b8d719a93f09f (diff)
downloadhdf5-7e52c4a1e1e1d62e5d920b0abc2246d4395f3682.zip
hdf5-7e52c4a1e1e1d62e5d920b0abc2246d4395f3682.tar.gz
hdf5-7e52c4a1e1e1d62e5d920b0abc2246d4395f3682.tar.bz2
Only use sanitizer with Clang
Diffstat (limited to 'config/sanitizer')
-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)