mono: llvm fork update 3.4svn-mono-f9b1a74368 -> 3.6-mono-2017-02-15

Also now builds with --enable-llvmloaded.

Extracted by @obadz from @abbradar's #23295
d27768ac1b
This commit is contained in:
obadz 2018-12-23 17:06:58 +00:00
parent 1be47a2c00
commit 013927f93c
3 changed files with 12 additions and 31 deletions

View File

@ -1,12 +0,0 @@
diff --git a/lib/CodeGen/AsmPrinter/CMakeLists.txt.old b/lib/CodeGen/AsmPrinter/CMakeLists.txt
index be484a6..c92ff46 100644
--- a/lib/CodeGen/AsmPrinter/CMakeLists.txt.old
+++ b/lib/CodeGen/AsmPrinter/CMakeLists.txt
@@ -10,6 +10,7 @@ add_llvm_library(LLVMAsmPrinter
DwarfCompileUnit.cpp
DwarfDebug.cpp
DwarfException.cpp
+ DwarfMonoException.cpp
ErlangGCPrinter.cpp
OcamlGCPrinter.cpp
Win64Exception.cpp

View File

@ -30,7 +30,6 @@ stdenv.mkDerivation rec {
] ]
++ stdenv.lib.optionals withLLVM [ ++ stdenv.lib.optionals withLLVM [
"--enable-llvm" "--enable-llvm"
"--enable-llvmloaded"
"--with-llvm=${llvm}" "--with-llvm=${llvm}"
]; ];

View File

@ -1,9 +1,10 @@
{ stdenv { stdenv
, fetchurl , lib
, perl , fetchFromGitHub
, groff , groff
, cmake , cmake
, python , python2
, perl
, libffi , libffi
, libbfd , libbfd
, libxml2 , libxml2
@ -14,22 +15,16 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "llvm-${version}"; name = "llvm-${version}";
version = "3.4svn-mono-f9b1a74368"; version = "3.6-mono-2017-02-15";
src = fetchurl {
# from the HEAD of the 'mono3' branch src = fetchFromGitHub {
url = "https://github.com/mono/llvm/archive/f9b1a74368ec299fc04c4cfef4b5aa0992b7b806.tar.gz"; owner = "mono";
name = "${name}.tar.gz"; repo = "llvm";
sha256 = "1bbkx4p5zdnk3nbdd5jxvbwqx8cdq8z1n1nhf639i98mggs0zhdg"; rev = "dbb6fdffdeb780d11851a6be77c209bd7ada4bd3";
sha256 = "07wd1cs3fdvzb1lv41b655z5zk34f47j8fgd9ljjimi5j9pj71f7";
}; };
patches = [ ./build-fix-llvm.patch ]; buildInputs = [ perl groff cmake libxml2 python2 libffi ] ++ lib.optional stdenv.isLinux valgrind;
unpackPhase = ''
unpackFile ${src}
mv llvm-* llvm
sourceRoot=$PWD/llvm
'';
buildInputs = [ perl groff cmake libxml2 python libffi ] ++ stdenv.lib.optional stdenv.isLinux valgrind;
propagatedBuildInputs = [ ncurses zlib ]; propagatedBuildInputs = [ ncurses zlib ];
@ -43,7 +38,6 @@ stdenv.mkDerivation rec {
cmakeFlags = with stdenv; [ cmakeFlags = with stdenv; [
"-DLLVM_ENABLE_FFI=ON" "-DLLVM_ENABLE_FFI=ON"
"-DLLVM_BINUTILS_INCDIR=${libbfd.dev}/include" "-DLLVM_BINUTILS_INCDIR=${libbfd.dev}/include"
"-DCMAKE_CXX_FLAGS=-std=c++11"
] ++ stdenv.lib.optional (!isDarwin) "-DBUILD_SHARED_LIBS=ON"; ] ++ stdenv.lib.optional (!isDarwin) "-DBUILD_SHARED_LIBS=ON";
enableParallelBuilding = true; enableParallelBuilding = true;