diff --git a/SCRAMV1.spec b/SCRAMV1.spec index dc6ec99714a..5dfdf68d9e3 100644 --- a/SCRAMV1.spec +++ b/SCRAMV1.spec @@ -1,8 +1,8 @@ -### RPM lcg SCRAMV1 V3_00_68 +### RPM lcg SCRAMV1 V3_00_69 ## NOCOMPILER ## NO_VERSION_SUFFIX -%define tag 15a8797db3180ba786e6e131a9c4e3011b53bc68 +%define tag f06afeba5ec011dd62e723a6490513bfddec7012 %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 diff --git a/cmssw-queue-override.file b/cmssw-queue-override.file index 0a0ac3ed8a9..f27a2bf005c 100644 --- a/cmssw-queue-override.file +++ b/cmssw-queue-override.file @@ -50,3 +50,10 @@ 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 diff --git a/scram-project-build.file b/scram-project-build.file index 2abbe4174da..4b8d7689697 100644 --- a/scram-project-build.file +++ b/scram-project-build.file @@ -6,11 +6,16 @@ %define cmssw_libs biglib/%{cmsplatf} lib/%{cmsplatf} %define scram_home_suffix %(echo %{directpkgreqs} | grep -q /SCRAMV1/V2_ && echo /src || true) %define scram_script_prefix %(echo %{directpkgreqs} | grep -q /SCRAMV1/V2_ && echo .pl || echo .py) + %if "%{?pkgname}" != "coral" %if "%{?package_vectorization}" != "" %define vectorized_build yes +%if "%{?scram_target_default:set}" != "set" +%define scram_target_default default +%endif %endif %endif + %if "%{?pgo_generate}" %undefine runGlimpse %undefine saveDeps @@ -55,7 +60,7 @@ BuildRequires: dwz %endif %if "%{?configtag:set}" != "set" -%define configtag V09-04-03 +%define configtag V09-04-04 %endif %if "%{?buildarch:set}" != "set" @@ -123,10 +128,12 @@ echo %{configtag} > %_builddir/config/config_tag %else --keys ENABLE_PGO=0 %endif + %if "%{?vectorized_build:set}" == "set" sed -i -e 's| SCRAM_TARGETS=.*"| SCRAM_TARGETS="%{package_vectorization}"|' %_builddir/config/Self.xml -sed -i -e 's|||' %_builddir/config/Self.xml +sed -i -e 's|||' %_builddir/config/Self.xml %endif + %if "%{?release_usercxxflags:set}" == "set" echo '' >> %_builddir/config/BuildFile.xml %endif