summaryrefslogtreecommitdiffstats
path: root/config/sanitizer
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-01-26 16:50:06 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-01-26 16:50:06 (GMT)
commitf10714ca68795099f19181f0790f26cb9283b342 (patch)
tree9638c416309fb12a5e78ed5d3156777fcedef03c /config/sanitizer
parentd038d8510032696e4defd86f1906e7d4fa133ba9 (diff)
downloadhdf5-f10714ca68795099f19181f0790f26cb9283b342.zip
hdf5-f10714ca68795099f19181f0790f26cb9283b342.tar.gz
hdf5-f10714ca68795099f19181f0790f26cb9283b342.tar.bz2
Correct ignore warnings and use only clang for sanitizers
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)