* [PATCH] llvm: Update to 8.0.1
@ 2019-09-02 12:33 Stefan Schantl
0 siblings, 0 replies; only message in thread
From: Stefan Schantl @ 2019-09-02 12:33 UTC (permalink / raw)
To: development
[-- Attachment #1: Type: text/plain, Size: 4577 bytes --]
Signed-off-by: Stefan Schantl <stefan.schantl(a)ipfire.org>
---
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 @@
###############################################################################
name = llvm
-version = 8.0.0
+version = 8.0.1
release = 1
groups = Applications/System
@@ -19,12 +19,13 @@ description
tools as well as libraries with equivalent functionality.
end
-source_dl = http://releases.llvm.org/%{version}/
+source_dl = https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/
sources = %{thisapp}.src.tar.xz
build
requires
binutils >= 2.32
+ chrpath
cmake >= 3.14.5
gcc
gcc-c++
@@ -36,9 +37,6 @@ build
DIR_APP = %{DIR_SRC}/%{thisapp}.src
- # Limit parallelization to only 2 jobs at the same time.
- PARALLELISMFLAGS = -j2
-
# Set suffix for libdir based on the build architecture.
llvm_libdir_suffix =
@@ -63,9 +61,9 @@ build
-DLLVM_BUILD_BENCHMARKS=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_RPATH=";" \
- -DLLVM_BUILD_LLVM_DYLIB=OFF \
- -DLLVM_LINK_LLVM_DYLIB=OFF \
- -DBUILD_SHARED_LIBS=ON \
+ -DLLVM_BUILD_LLVM_DYLIB=ON \
+ -DLLVM_LINK_LLVM_DYLIB=ON \
+ -DBUILD_SHARED_LIBS=OFF \
-DLLVM_ENABLE_FFI=ON \
-DLLVM_ENABLE_RTTI=ON \
-DLLVM_ENABLE_LIBCXX=OFF \
@@ -80,19 +78,94 @@ build
-DLLVM_LIBDIR_SUFFIX=%{llvm_libdir_suffix} \
-Wno-dev
- make %{PARALELLISMFLAGS}
+ make %{PARALLELISMFLAGS}
end
test
cd %{DIR_APP}/build
- make check-all %{PARALELLISMFLAGS}
+ make check-all %{PARALLELISMFLAGS}
end
install
cd %{DIR_APP}/build
make install DESTDIR=%{BUILDROOT}
+
+ # Install binaries needed for lit tests
+ for f in FileCheck count lli-child-target llvm-PerfectShuffle llvm-isel-fuzzer \
+ 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
@@ -105,6 +178,9 @@ packages
package llvm-devel
template DEVEL
+
+ files += \
+ %{libdir}/cmake/llvm
end
package %{name}-debuginfo
--
2.20.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-09-02 12:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-02 12:33 [PATCH] llvm: Update to 8.0.1 Stefan Schantl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox