lld: move ldconfig_scriptlets into llvm.spec

This commit is contained in:
Konrad Kleine 2024-07-05 19:23:26 +00:00 committed by Timm Bäder
parent d2784c597d
commit 67ad348eff

View file

@ -15,7 +15,6 @@ rm llvm/test/tools/dsymutil/X86/swift-interface.test
cd llvm cd llvm
#region Helper functions #region Helper functions
# Call this function before setting up a next component to test. # Call this function before setting up a next component to test.
function reset_test_opts() function reset_test_opts()
{ {
@ -68,30 +67,22 @@ function test_list_to_regex()
# Add enclosing parenthesis # Add enclosing parenthesis
echo "($arr)" echo "($arr)"
} }
#endregion #endregion
#region Test LLVM #region Test LLVM
reset_test_opts reset_test_opts
# Xfail testing of update utility tools # Xfail testing of update utility tools
export LIT_XFAIL="tools/UpdateTestChecks" export LIT_XFAIL="tools/UpdateTestChecks"
%cmake_build --target check-llvm %cmake_build --target check-llvm
#endregion #endregion
#region Test CLANG #region Test CLANG
reset_test_opts reset_test_opts
export LIT_XFAIL="$LIT_XFAIL;clang/test/CodeGen/profile-filter.c" export LIT_XFAIL="$LIT_XFAIL;clang/test/CodeGen/profile-filter.c"
%cmake_build --target check-clang %cmake_build --target check-clang
#endregion #endregion
#region Test OPENMP #region Test OPENMP
reset_test_opts reset_test_opts
# TODO(kkleine): OpenMP tests are currently not run on rawhide (see https://bugzilla.redhat.com/show_bug.cgi?id=2252966): # TODO(kkleine): OpenMP tests are currently not run on rawhide (see https://bugzilla.redhat.com/show_bug.cgi?id=2252966):
@ -247,7 +238,6 @@ export LIT_XFAIL="$LIT_XFAIL;worksharing/for/omp_collapse_one_int.c"
export LIT_FILTER_OUT=$(test_list_to_regex test_list_filter_out) export LIT_FILTER_OUT=$(test_list_to_regex test_list_filter_out)
%cmake_build --target check-openmp %cmake_build --target check-openmp
#endregion #endregion
#region Test LLDB #region Test LLDB
@ -259,15 +249,8 @@ reset_test_opts
#endregion #endregion
#region Test LLD #region Test LLD
reset_test_opts reset_test_opts
%if %{without compat_build}
%ldconfig_scriptlets -n %{pkg_name_lld}-libs
%endif
%cmake_build --target check-lld %cmake_build --target check-lld
#endregion #endregion
%endif %endif