Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add CMS_X_SANITIZER macros #9469

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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