forked from cms-sw/cmsdist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cmssw-queue-override.file
53 lines (43 loc) · 2.08 KB
/
cmssw-queue-override.file
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
### FILE cmssw-queue-override
## NO_AUTO_RUNPATH
## NO_VERSION_SUFFIX
## UPLOAD_DEPENDENCIES dqmgui
%if "%(case %realversion in (*_COVERAGE_X*) echo true ;; (*) echo false ;; esac)" == "true"
%define release_usercxxflags -fprofile-arcs -ftest-coverage
%endif
%if "%(case %realversion in (*_DEBUG_X*) echo true ;; (*) echo false ;; esac)" == "true"
%define gitcommit %(echo %realversion | sed -e 's|_DEBUG_X|_X|')
%endif
%if "%(case %realversion in (*_EXPERIMENTAL_X*) echo true ;; (*) echo false ;; esac)" == "true"
%define release_usercxxflags -O3 -ffast-math -freciprocal-math -fipa-pta
%endif
%if "%(case %realversion in (*_DBG_X*) echo true ;; (*) echo false ;; esac)" == "true"
%ifarch ppc64le
%define usercxxflags -g
%else
%define release_usercxxflags -g -O3 -DEDM_ML_DEBUG
%endif
%endif
%if "%(case %realversion in (*_CMSDEPRECATED_X*) echo true ;; (*) echo false ;; esac)" == "true"
%define release_usercxxflags -DUSE_CMS_DEPRECATED
%endif
%if "%(case %realversion in (*_FORTIFIED_X*) echo true ;; (*) echo false ;; esac)" == "true"
%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 release_usercxxflags -g
%define patchsrc20 sed -i -e 's|</tool>| <runtime name="UBSAN_OPTIONS" value="print_stacktrace=1"/>\\n</tool>|' config/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
%define extra_tools mpfr gmp icc-cxxcompiler icc-f77compiler icc-ccompiler
%endif
%if "%(case %realversion in (*_CLANG*) echo true ;; (*) echo false ;; esac)" == "true"
%define scram_compiler llvm
%define extra_tools llvm-cxxcompiler llvm-f77compiler llvm-ccompiler
%endif
%if "%(case %realversion in (*CXXMODULE*) echo true ;; (*) echo false ;; esac)" == "true"
Source20: CXXModules.mk
%define patchsrc20 cp %{_sourcedir}/CXXModules.mk config/SCRAM/GMake/CXXModules.mk
%endif