Skip to content

Commit

Permalink
set UBSAN_OPTIONS=print_stacktrace=1 for UBSAN IBs
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Oct 5, 2021
1 parent 24f57e2 commit ed976d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmssw-queue-override.file
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
%define release_usercxxflags -fexceptions -fstack-protector-all --param=ssp-buffer-size=4 -Wp,-D_FORTIFY_SOURCE=2
%endif

%if "%(case %realversion in (*_UBSAN_X*) echo true ;; (*) echo false ;; esac)" == "true"
%define patchsrc20 sed -i -e 's|</tool>| <runtime name="UBSAN_OPTIONS" value="print_stacktrace=1"/>\n</tool>|' config/Projects/CMSSW/Self.xml
%endif

%if "%(case %realversion in (*_ICC_X*) echo true ;; (*) echo false ;; esac)" == "true"
%define gitcommit %(echo %realversion | sed -e 's|_ICC_X|_X|')
%define scram_compiler icc
Expand Down

0 comments on commit ed976d5

Please sign in to comment.