forked from cms-sw/cmsdist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cmssw-queue-override.file
67 lines (54 loc) · 2.45 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
### 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 -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*) echo true ;; (*) echo false ;; esac)" == "true"
%define release_usercxxflags -g
%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 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
%if "%(case %realversion in (*MULTIARCH*) echo true ;; (*) echo false ;; esac)" == "true"
%define scram_target_default auto
%endif
%if "%(case %realversion in (*SKYLAKE*) echo true ;; (*) echo false ;; esac)" == "true"
%define scram_target_default auto
%endif
%if "%(case %realversion in (*ASNEEDED*) echo true ;; (*) echo false ;; esac)" == "true"
%define release_userldflags -Wl,--as-needed
%endif
%if "%(case %realversion in (*NOOFAST*) echo true ;; (*) echo false ;; esac)" == "true"
%define remove_tools ofast-flag
%endif