Ship .ninja_log in llvm-build-stats package

This should make it easier to analyze which parts of the build
are slow. The new package is only available in snapshot builds,
we don't want to ship it in production.
This commit is contained in:
Nikita Popov 2024-05-28 18:19:54 +02:00
parent c1ee2896c0
commit c5be72cd34
3 changed files with 18 additions and 0 deletions

View file

@ -216,3 +216,8 @@ cd llvm
%endif %endif
#endregion #endregion
%if %{with snapshot_build}
# Do this here instead of in install so the check targets are also included.
cp %{_vpath_builddir}/.ninja_log %{buildroot}%{pkg_datadir}
%endif

View file

@ -309,6 +309,11 @@
%{install_includedir}/llvm-gtest %{install_includedir}/llvm-gtest
%{install_includedir}/llvm-gmock %{install_includedir}/llvm-gmock
%if %{with snapshot_build}
%files -n %{pkg_name_llvm}-build-stats
%{pkg_datadir}/.ninja_log
%endif
#endregion #endregion
#region CLANG files #region CLANG files

View file

@ -80,6 +80,14 @@ LLVM's modified googletest sources.
%endif %endif
%if %{with snapshot_build}
%package -n %{pkg_name_llvm}-build-stats
Summary: Statistics for the RPM build
%description -n %{pkg_name_llvm}-build-stats
Statistics for the RPM build. Only available in snapshot builds.
%endif
#endregion #endregion
#region CLANG packages #region CLANG packages