mirror of
https://src.fedoraproject.org/rpms/llvm.git
synced 2024-11-28 02:34:52 +00:00
LLVM 14.0.0 - sync with rawhide
This commit is contained in:
parent
e6d1a04f09
commit
7857c3e7ea
7 changed files with 48 additions and 12 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -124,3 +124,5 @@
|
|||
/llvm-13.0.1rc3.src.tar.xz.sig
|
||||
/llvm-13.0.1.src.tar.xz
|
||||
/llvm-13.0.1.src.tar.xz.sig
|
||||
/llvm-14.0.0.src.tar.xz
|
||||
/llvm-14.0.0.src.tar.xz.sig
|
||||
|
|
|
@ -23,8 +23,8 @@ index bd0de60268b6..cc5d56b0c512 100644
|
|||
; powerpc64 (and on x86_64 at at least -O2). Presumably this is a SelectionDAG
|
||||
; issue.
|
||||
; FIXME: arm64 is an alias for aarch64 on macs, apparently?
|
||||
-; XFAIL: powerpc64, aarch64, arm64, hexagon
|
||||
+; XFAIL: powerpc64, aarch64, arm64, hexagon, ppc64le
|
||||
-; XFAIL: powerpc64, aarch64, arm64, hexagon, riscv
|
||||
+; XFAIL: powerpc64, aarch64, arm64, hexagon, riscv, ppc64le
|
||||
|
||||
; Build from the following source with clang -O2.
|
||||
|
||||
|
|
28
llvm.spec
28
llvm.spec
|
@ -15,10 +15,10 @@
|
|||
|
||||
%global llvm_libdir %{_libdir}/%{name}
|
||||
%global build_llvm_libdir %{buildroot}%{llvm_libdir}
|
||||
#global rc_ver 3
|
||||
%global maj_ver 13
|
||||
#global rc_ver 4
|
||||
%global maj_ver 14
|
||||
%global min_ver 0
|
||||
%global patch_ver 1
|
||||
%global patch_ver 0
|
||||
%if !%{maj_ver} && 0%{?rc_ver}
|
||||
%global abi_revision 2
|
||||
%endif
|
||||
|
@ -169,6 +169,14 @@ Summary: LLVM shared libraries
|
|||
%description libs
|
||||
Shared libraries for the LLVM compiler infrastructure.
|
||||
|
||||
%if %{without compat_build}
|
||||
%package cmake-devel
|
||||
Summary: LLVM shared development CMake files
|
||||
|
||||
%description cmake-devel
|
||||
Some CMake files that are shared by LLVM sub-projects when building.
|
||||
%endif
|
||||
|
||||
%package static
|
||||
Summary: LLVM static libraries
|
||||
Conflicts: %{name}-devel < 8
|
||||
|
@ -257,7 +265,7 @@ LLVM's modified googletest sources.
|
|||
\
|
||||
-DLLVM_INCLUDE_TESTS:BOOL=ON \
|
||||
-DLLVM_BUILD_TESTS:BOOL=ON \
|
||||
-DLLVM_LIT_EXTRA_ARGS=-v \
|
||||
-DLLVM_LIT_ARGS=-v \
|
||||
\
|
||||
-DLLVM_INCLUDE_EXAMPLES:BOOL=ON \
|
||||
-DLLVM_BUILD_EXAMPLES:BOOL=OFF \
|
||||
|
@ -289,7 +297,8 @@ LLVM's modified googletest sources.
|
|||
-DSPHINX_WARNINGS_AS_ERRORS=OFF \
|
||||
-DCMAKE_INSTALL_PREFIX=%{install_prefix} \
|
||||
-DLLVM_INSTALL_SPHINX_HTML_DIR=%{_pkgdocdir}/html \
|
||||
-DSPHINX_EXECUTABLE=%{_bindir}/sphinx-build-3
|
||||
-DSPHINX_EXECUTABLE=%{_bindir}/sphinx-build-3 \
|
||||
-DLLVM_INCLUDE_BENCHMARKS=OFF
|
||||
|
||||
# Build libLLVM.so first. This ensures that when libLLVM.so is linking, there
|
||||
# are no other compile jobs running. This will help reduce OOM errors on the
|
||||
|
@ -409,6 +418,9 @@ rm %{buildroot}%{_bindir}/llvm-config%{exec_suffix}
|
|||
# ghost presence
|
||||
touch %{buildroot}%{_bindir}/llvm-config%{exec_suffix}
|
||||
|
||||
%if %{without compat_build}
|
||||
cp -Rv ../cmake/Modules/* %{buildroot}%{_libdir}/cmake/llvm
|
||||
%endif
|
||||
|
||||
|
||||
%check
|
||||
|
@ -545,9 +557,15 @@ fi
|
|||
%{_datadir}/llvm/src/utils
|
||||
%{_libdir}/libLLVMTestingSupport.a
|
||||
|
||||
%files cmake-devel
|
||||
%{_libdir}/cmake/llvm
|
||||
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Wed Mar 23 2022 Timm Bäder <tbaeder@redhat.com> - 14.0.0-1
|
||||
- Update to LLVM 14.0.0
|
||||
|
||||
* Wed Feb 02 2022 Nikita Popov <npopov@redhat.com> - 13.0.1-1
|
||||
- Update to LLVM 13.0.1 final
|
||||
|
||||
|
|
4
sources
4
sources
|
@ -1,2 +1,2 @@
|
|||
SHA512 (llvm-13.0.1.src.tar.xz) = 05fbe8708ac3d0dfef3a9135ee88185a95ed492095429a97d33b8aadb0187e59ad42d1a7184f02b5c84fdd31f3d7227c65bd292ed0aa039b29522e59cf90a965
|
||||
SHA512 (llvm-13.0.1.src.tar.xz.sig) = 0db0076fee269faa477ff7ff42c3ef5bd24cb3816219bbc093080fd4f7516e5414dc0f686325761ff57255d91307cd3f4dbba9066ea7cd69fb819a856f05bde8
|
||||
SHA512 (llvm-14.0.0.src.tar.xz) = 3e2e9d7ccc44abeff189b76c3a8b1fcfed1f6846e8933cd002d9476a017f28ef4bd8d0e290be1838d50054038a3e0bcfad29d28733a01b811ddaaf11e0c4445f
|
||||
SHA512 (llvm-14.0.0.src.tar.xz.sig) = ac9c5508644a2bad10a7c7bc46f3f9a127b8e83c136bc553252048b14a2b72f924034490c0cdcf32c91b30b03e26768c925e3155fce5748bc2b53ed581056555
|
||||
|
|
|
@ -24,6 +24,14 @@ adjust:
|
|||
- python3-lit
|
||||
when: "collection is not defined"
|
||||
|
||||
# lld and libomp are not supported in s390x, remove them
|
||||
- require-:
|
||||
- lld
|
||||
- libomp-devel
|
||||
when: >-
|
||||
collection is not defined
|
||||
and arch == s390x
|
||||
|
||||
# Requirements for SCL-ized LLVM
|
||||
- require+:
|
||||
- llvm-toolset-13.0-cmake
|
||||
|
@ -39,6 +47,14 @@ adjust:
|
|||
- llvm-toolset-13.0-python3-lit
|
||||
when: "collection == llvm-toolset-13.0"
|
||||
|
||||
# lld and libomp are not supported in s390x, remove them
|
||||
- require-:
|
||||
- llvm-toolset-13.0-lld
|
||||
- llvm-toolset-13.0-libomp-devel
|
||||
when: >-
|
||||
collection == llvm-toolset-13.0
|
||||
and arch == s390x
|
||||
|
||||
# libcxx shall be required in Fedora, it's not shipped with RHEL.
|
||||
- require+:
|
||||
- libcxx-devel
|
||||
|
|
|
@ -34,4 +34,4 @@ git clone $repo_url
|
|||
cd llvm-toolchain-integration-test-suite
|
||||
mkdir _build && cd _build
|
||||
cmake .. -GNinja ${CMAKE_CXXLIB:-}
|
||||
ninja $thread_args check
|
||||
cmake --build . $thread_args --target check
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
# while stripping binaries, which causes the strip to fail, but does
|
||||
# not fail the build. This results in a libLLVM.so that is over 2GB
|
||||
# which breaks the nightly compose. So this test checks that libLLVM.so
|
||||
# is less than 100MB to ensure it was successfully stripped.
|
||||
# is less than 150MB to ensure it was successfully stripped.
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1793250
|
||||
|
||||
test $(stat -L -c %s $LIBLLVM_PATH) -lt 104857600
|
||||
test $(stat -L -c %s $LIBLLVM_PATH) -lt 157286400
|
||||
|
|
Loading…
Reference in a new issue