Skip to content

Commit

Permalink
Merge IB/CMSSW_13_1_X/master into IB/CMSSW_13_1_X/g12.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmsbuild committed Apr 5, 2023
2 parents e1807a8 + e8d8497 commit a5f2d69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pgo/cmsdist_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def packages(virtual_packages, *args):
spec = " echo '%%define pgo_path_prefix %s'" % ('@LOCALTOP@' if pkg in ["cmssw-tool-conf"] else '%{_builddir}')
spec += "; echo '%%define pgo_package_name %s'" % ('cmssw' if pkg in ["cmssw-tool-conf"] else pkg)
spec += "; echo '%%define %s 1'" % ('pgo_generate' if opts.PGOGenerate else 'pgo_use')
spec += "; echo '## INCLUDE compilation_flags_pgo'"
spec += "; echo '## INCLUDE pgo/compilation_flags_pgo'"
spec += "; cat %s/%s.spec" % (opts.cmsdist, pkg)
virtual_packages[pkg] = spec
return
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
# pgo_generate: Set if package is build in pgo generate mode
# pgo_use: Set if package is build in pgo use mode

%define cmsdist_package_initenv export CMSSW_PGO_DIRECTORY=%{cmsroot}/%{tempprefix}
%define pgo_common -fprofile-prefix-path=%{pgo_path_prefix} -fprofile-update=prefer-atomic -fprofile-correction
%if "%{?pgo_generate:set}" == "set"
%define cmsdist_package_initenv export CMSSW_PGO_DIRECTORY=%{cmsroot}/%{tempprefix}
%define pgo_build_flags %{pgo_common} -fprofile-generate -fprofile-dir=%%q{CMSSW_PGO_DIRECTORY}/pgo/%%p/%{pgo_package_name}
%endif
%if "%{?pgo_use:set}" == "set"
Expand Down

0 comments on commit a5f2d69

Please sign in to comment.