Skip to content

Commit

Permalink
Merge pull request #9170 from cms-sw/fix-ut-linkflag-microarch
Browse files Browse the repository at this point in the history
Fix unittest link flags for extra micro-arch
  • Loading branch information
smuzaffar authored May 1, 2024
2 parents c10ea00 + 514e3e7 commit 372626e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scram-project-build.file
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ BuildRequires: dwz
%endif

%if "%{?configtag:set}" != "set"
%define configtag V09-04-07
%define configtag V09-04-08
%endif

%if "%{?buildarch:set}" != "set"
Expand Down
3 changes: 2 additions & 1 deletion scram-tool-conf.file
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ for tool in %requiredtools; do
done
%{_sourcedir}/scram-tools/bin/get_tools "" "system" %i "systemtools"

default_microarch_flag=$(%{cmsdist_directory}/vectorization/cmsdist_packages.py)
for vec in %{package_vectorization}; do \
ucvec=`echo $vec | tr '[a-z-]' '[A-Z_]'`
for tool in %{vectorized_packages}; do \
Expand All @@ -49,7 +50,7 @@ for vec in %{package_vectorization}; do \
done
if [ -f %i/tools/selected/gcc-cxxcompiler.xml ] ; then
f=$(%{cmsdist_directory}/vectorization/cmsdist_packages.py $vec)
sed -i -e "s#</tool># <flags CXXFLAGS_TARGETS_${ucvec}=\"${f}\"/>\n</tool>#" %i/tools/selected/gcc-cxxcompiler.xml
sed -i -e "s# *</tool># <flags CXXFLAGS_TARGETS_${ucvec}=\"${f}\"/>\n <flags REM_CXXFLAGS_TARGETS_${ucvec}=\"${default_microarch_flag}\"/>\n </tool>#" %i/tools/selected/gcc-cxxcompiler.xml
fi
done

Expand Down

0 comments on commit 372626e

Please sign in to comment.