Skip to content

Commit

Permalink
Merge pull request #9469 from cms-sw/ubsan-macro
Browse files Browse the repository at this point in the history
add CMS_X_SANITIZER macros
  • Loading branch information
smuzaffar authored Oct 17, 2024
2 parents b7650e3 + cbb54d0 commit 853f4f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions scram-tools.file/tools/gcc/sanitizer-flags-asan.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<tool name="sanitizer-flags-asan" version="1.0">
<ifrelease name="ASAN">
<flags CPPDEFINES="CMS_ADDRESS_SANITIZER"/>
<flags CXXFLAGS="-fno-omit-frame-pointer -fsanitize=address"/>
<!-- See https://github.com/cms-sw/cmssw/issues/36480 <flags CXXFLAGS="-fsanitize=pointer-compare"/> -->
<flags CXXFLAGS="-fsanitize=pointer-subtract"/>
Expand Down
1 change: 1 addition & 0 deletions scram-tools.file/tools/gcc/sanitizer-flags-ubsan.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<tool name="sanitizer-flags-ubsan" version="1.0">
<ifrelease name="UBSAN">
<flags CPPDEFINES="CMS_UNDEFINED_SANITIZER"/>
<flags CXXFLAGS="-fno-omit-frame-pointer -fsanitize=undefined"/>
<flags CXXFLAGS="-fsanitize=builtin -fsanitize=pointer-overflow"/>
<flags REM_BOOST_SERIALIZATION_CXXFLAGS="-fno-omit-frame-pointer -fsanitize=undefined"/>
Expand Down

0 comments on commit 853f4f9

Please sign in to comment.