public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Stefan Schantl <stefan.schantl@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH] llvm: Update to 8.0.1
Date: Mon, 02 Sep 2019 14:33:05 +0200	[thread overview]
Message-ID: <20190902123305.31821-1-stefan.schantl@ipfire.org> (raw)

[-- 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


                 reply	other threads:[~2019-09-02 12:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190902123305.31821-1-stefan.schantl@ipfire.org \
    --to=stefan.schantl@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox