From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] llvm: Update to 8.0.1 Date: Mon, 02 Sep 2019 14:33:05 +0200 Message-ID: <20190902123305.31821-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8011514412438436301==" List-Id: --===============8011514412438436301== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Signed-off-by: Stefan Schantl --- llvm/llvm.nm | 96 ++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 86 insertions(+), 10 deletions(-) diff --git a/llvm/llvm.nm b/llvm/llvm.nm index fc7d5cfee..ad677ca99 100644 --- a/llvm/llvm.nm +++ b/llvm/llvm.nm @@ -4,7 +4,7 @@ ############################################################################= ### =20 name =3D llvm -version =3D 8.0.0 +version =3D 8.0.1 release =3D 1 =20 groups =3D Applications/System @@ -19,12 +19,13 @@ description tools as well as libraries with equivalent functionality. end =20 -source_dl =3D http://releases.llvm.org/%{version}/ +source_dl =3D https://github.com/llvm/llvm-project/releases/download/llvmor= g-%{version}/ sources =3D %{thisapp}.src.tar.xz =20 build requires binutils >=3D 2.32 + chrpath cmake >=3D 3.14.5 gcc gcc-c++ @@ -36,9 +37,6 @@ build =20 DIR_APP =3D %{DIR_SRC}/%{thisapp}.src =20 - # Limit parallelization to only 2 jobs at the same time. - PARALLELISMFLAGS =3D -j2 - # Set suffix for libdir based on the build architecture. llvm_libdir_suffix =3D =20 @@ -63,9 +61,9 @@ build -DLLVM_BUILD_BENCHMARKS=3DOFF \ -DCMAKE_BUILD_TYPE=3DRelease \ -DCMAKE_INSTALL_RPATH=3D";" \ - -DLLVM_BUILD_LLVM_DYLIB=3DOFF \ - -DLLVM_LINK_LLVM_DYLIB=3DOFF \ - -DBUILD_SHARED_LIBS=3DON \ + -DLLVM_BUILD_LLVM_DYLIB=3DON \ + -DLLVM_LINK_LLVM_DYLIB=3DON \ + -DBUILD_SHARED_LIBS=3DOFF \ -DLLVM_ENABLE_FFI=3DON \ -DLLVM_ENABLE_RTTI=3DON \ -DLLVM_ENABLE_LIBCXX=3DOFF \ @@ -80,19 +78,94 @@ build -DLLVM_LIBDIR_SUFFIX=3D%{llvm_libdir_suffix} \ -Wno-dev =20 - make %{PARALELLISMFLAGS} + make %{PARALLELISMFLAGS} end =20 test cd %{DIR_APP}/build =20 - make check-all %{PARALELLISMFLAGS} + make check-all %{PARALLELISMFLAGS} end =20 install cd %{DIR_APP}/build =20 make install DESTDIR=3D%{BUILDROOT} + + # Install binaries needed for lit tests + for f in FileCheck count lli-child-target llvm-PerfectShuffle llvm-isel-fu= zzer \ + llvm-opt-fuzzer not yaml-bench; do + # Install the binary. + install -m 0755 %{DIR_APP}/build/bin/${f} %{BUILDROOT}%{bindir} + + # Remove RPATH from binary. + chrpath --delete %{BUILDROOT}%{bindir}/${f} + done + end + + keep_libraries + %{libdir}/libLLVMDemangle.a + %{libdir}/libLLVMSupport.a + %{libdir}/libLLVMTableGen.a + %{libdir}/libLLVMCore.a + %{libdir}/libLLVMFuzzMutate.a + %{libdir}/libLLVMIRReader.a + %{libdir}/libLLVMCodeGen.a + %{libdir}/libLLVMSelectionDAG.a + %{libdir}/libLLVMAsmPrinter.a + %{libdir}/libLLVMMIRParser.a + %{libdir}/libLLVMGlobalISel.a + %{libdir}/libLLVMBinaryFormat.a + %{libdir}/libLLVMBitReader.a + %{libdir}/libLLVMBitWriter.a + %{libdir}/libLLVMTransformUtils.a + %{libdir}/libLLVMInstrumentation.a + %{libdir}/libLLVMAggressiveInstCombine.a + %{libdir}/libLLVMInstCombine.a + %{libdir}/libLLVMScalarOpts.a + %{libdir}/libLLVMipo.a + %{libdir}/libLLVMVectorize.a + %{libdir}/libLLVMObjCARCOpts.a + %{libdir}/libLLVMCoroutines.a + %{libdir}/libLLVMLinker.a + %{libdir}/libLLVMAnalysis.a + %{libdir}/libLLVMLTO.a + %{libdir}/libLLVMMC.a + %{libdir}/libLLVMMCParser.a + %{libdir}/libLLVMMCDisassembler.a + %{libdir}/libLLVMMCA.a + %{libdir}/libLLVMObject.a + %{libdir}/libLLVMObjectYAML.a + %{libdir}/libLLVMOption.a + %{libdir}/libLLVMOptRemarks.a + %{libdir}/libLLVMDebugInfoDWARF.a + %{libdir}/libLLVMDebugInfoMSF.a + %{libdir}/libLLVMDebugInfoCodeView.a + %{libdir}/libLLVMDebugInfoPDB.a + %{libdir}/libLLVMSymbolize.a + %{libdir}/libLLVMExecutionEngine.a + %{libdir}/libLLVMInterpreter.a + %{libdir}/libLLVMMCJIT.a + %{libdir}/libLLVMOrcJIT.a + %{libdir}/libLLVMRuntimeDyld.a + %{libdir}/libLLVMTarget.a + %{libdir}/libLLVMX86CodeGen.a + %{libdir}/libLLVMX86AsmParser.a + %{libdir}/libLLVMX86Disassembler.a + %{libdir}/libLLVMX86AsmPrinter.a + %{libdir}/libLLVMX86Desc.a + %{libdir}/libLLVMX86Info.a + %{libdir}/libLLVMX86Utils.a + %{libdir}/libLLVMAsmParser.a + %{libdir}/libLLVMLineEditor.a + %{libdir}/libLLVMProfileData.a + %{libdir}/libLLVMCoverage.a + %{libdir}/libLLVMPasses.a + %{libdir}/libLLVMTextAPI.a + %{libdir}/libLLVMDlltoolDriver.a + %{libdir}/libLLVMLibDriver.a + %{libdir}/libLLVMXRay.a + %{libdir}/libLLVMWindowsManifest.a end end =20 @@ -105,6 +178,9 @@ packages =20 package llvm-devel template DEVEL + + files +=3D \ + %{libdir}/cmake/llvm end =20 package %{name}-debuginfo --=20 2.20.1 --===============8011514412438436301==--