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

move sanitizer flags in to toolfile; drop sanitizer deps for rocm prod #8311

Merged
merged 2 commits into from
Feb 12, 2023
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
4 changes: 2 additions & 2 deletions SCRAMV1.spec
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
### RPM lcg SCRAMV1 V3_00_58
### RPM lcg SCRAMV1 V3_00_59
## NOCOMPILER
## NO_VERSION_SUFFIX

%define tag 6654963f322524cb9560b6e46e7d9807c2cec9cf
%define tag e8f47d278bafb41f8ea16e2ae7247c709ee9d591
%define branch SCRAMV3
%define github_user cms-sw
Source: git+https://github.com/%{github_user}/SCRAM.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}-%{tag}.tgz
Expand Down
2 changes: 1 addition & 1 deletion scram-project-build.file
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ BuildRequires: dwz
%endif

%if "%{?configtag:set}" != "set"
%define configtag V07-05-11
%define configtag V07-06-01
%endif

%if "%{?cvssrc:set}" != "set"
Expand Down
7 changes: 7 additions & 0 deletions scram-tools.file/tools/gcc/sanitizer-flags-asan.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<tool name="sanitizer-flags-asan" version="1.0">
<ifrelease name="ASAN">
<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"/>
</ifrelease>
</tool>
8 changes: 8 additions & 0 deletions scram-tools.file/tools/gcc/sanitizer-flags-ubsan.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<tool name="sanitizer-flags-ubsan" version="1.0">
<ifrelease name="UBSAN">
<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"/>
<flags REM_BOOST_SERIALIZATION_CXXFLAGS="-fsanitize=builtin -fsanitize=pointer-overflow"/>
</ifrelease>
</tool>