Skip to content

Commit

Permalink
Merge pull request #8317 from cms-sw/backport-IB_CMSSW_13_0_X_master-…
Browse files Browse the repository at this point in the history
…8311

move sanitizer flags in to toolfile; drop sanitizer deps for rocm prod
  • Loading branch information
smuzaffar authored Feb 15, 2023
2 parents 475ad6c + 15dc434 commit a097d3d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
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>

0 comments on commit a097d3d

Please sign in to comment.