Manually associate files with compiler-rt

This commit is contained in:
Konrad Kleine 2024-05-13 11:50:07 +00:00 committed by Timm Bäder
parent d146c76d57
commit 3bebfe7be5
3 changed files with 93 additions and 8 deletions

View file

@ -0,0 +1,72 @@
# Files that appear both in x86_64 and i686
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/clang_rt.crtbegin.o
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/clang_rt.crtend.o
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.asan.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.asan_cxx.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.asan-preinit.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.asan.so
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.asan_static.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.builtins.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.cfi.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.cfi_diag.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.fuzzer.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.fuzzer_interceptors.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.fuzzer_no_main.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.gwp_asan.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.lsan.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.profile.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.safestack.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.scudo_standalone.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.scudo_standalone_cxx.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.scudo_standalone.so
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.stats.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.stats_client.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.ubsan_minimal.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.ubsan_minimal.so
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.ubsan_standalone.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.ubsan_standalone_cxx.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.ubsan_standalone.so
# Files that don't appear in i686
%ifnarch %{ix86}
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.asan.a.syms
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.asan_cxx.a.syms
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.dd.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.dfsan.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.dfsan.a.syms
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.dyndd.so
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.hwasan.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.hwasan_aliases.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.hwasan_aliases.a.syms
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.hwasan_aliases_cxx.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.hwasan_aliases_cxx.a.syms
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.hwasan_aliases.so
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.hwasan.a.syms
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.hwasan_cxx.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.hwasan_cxx.a.syms
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.hwasan-preinit.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.hwasan.so
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.memprof.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.memprof.a.syms
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.memprof_cxx.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.memprof_cxx.a.syms
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.memprof-preinit.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.memprof.so
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.msan.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.msan.a.syms
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.msan_cxx.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.msan_cxx.a.syms
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.tsan.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.tsan.a.syms
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.tsan_cxx.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.tsan_cxx.a.syms
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.tsan.so
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.ubsan_minimal.a.syms
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.ubsan_standalone.a.syms
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.ubsan_standalone_cxx.a.syms
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.xray.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.xray-basic.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.xray-fdr.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/libclang_rt.xray-profiling.a
%{_prefix}/lib/clang/%{maj_ver}/%{llvm_triple}/liborc_rt.a
%endif

View file

@ -502,17 +502,29 @@
%if %{without compat_build} %if %{without compat_build}
%files -n %{pkg_name_compiler_rt} %files -n %{pkg_name_compiler_rt} -f files.compiler-rt.spec.inc
%license compiler-rt/LICENSE.TXT %license compiler-rt/LICENSE.TXT
%ifarch x86_64 aarch64 %{ix86} %ifarch x86_64 aarch64 %{ix86}
%{_prefix}/lib/clang/%{maj_ver}/bin/* %{_prefix}/lib/clang/%{maj_ver}/bin/hwasan_symbolize
%endif %endif
%{_prefix}/lib/clang/%{maj_ver}/include/* %{_prefix}/lib/clang/%{maj_ver}/include/fuzzer
%{_prefix}/lib/clang/%{maj_ver}/lib/* %{_prefix}/lib/clang/%{maj_ver}/include/fuzzer/*
%{_prefix}/lib/clang/%{maj_ver}/share/* %{_prefix}/lib/clang/%{maj_ver}/include/orc
#%ifarch x86_64 aarch64 %{_prefix}/lib/clang/%{maj_ver}/include/orc/*
#{_bindir}/hwasan_symbolize %{_prefix}/lib/clang/%{maj_ver}/include/profile
#%endif %{_prefix}/lib/clang/%{maj_ver}/include/profile/*
%{_prefix}/lib/clang/%{maj_ver}/include/sanitizer
%{_prefix}/lib/clang/%{maj_ver}/include/sanitizer/*
%{_prefix}/lib/clang/%{maj_ver}/include/xray
%{_prefix}/lib/clang/%{maj_ver}/include/xray/*
%{_prefix}/lib/clang/%{maj_ver}/share/asan_ignorelist.txt
%{_prefix}/lib/clang/%{maj_ver}/share/asan_ignorelist.txt
%{_prefix}/lib/clang/%{maj_ver}/share/cfi_ignorelist.txt
%{_prefix}/lib/clang/%{maj_ver}/share/cfi_ignorelist.txt
%{_prefix}/lib/clang/%{maj_ver}/share/dfsan_abilist.txt
%{_prefix}/lib/clang/%{maj_ver}/share/hwasan_ignorelist.txt
%{_prefix}/lib/clang/%{maj_ver}/share/msan_ignorelist.txt
%endif %endif

View file

@ -18,6 +18,7 @@ Source1001: build.spec.inc
Source1002: changelog.spec.inc Source1002: changelog.spec.inc
Source1003: check.spec.inc Source1003: check.spec.inc
Source1004: files.spec.inc Source1004: files.spec.inc
Source1014: files.compiler-rt.spec.inc
Source1005: globals.spec.inc Source1005: globals.spec.inc
Source1006: install.spec.inc Source1006: install.spec.inc
Source1008: patches.spec.inc Source1008: patches.spec.inc