git.iko.soy/typeable/nixpkgs
on master help sign in
llvm_{4,5}: Add Aarch64 patch

https://reviews.llvm.org/D40423

commit0ea6ab80971bc0fb5c81d68c790ee76f0d7b9b53 authorTuomas Tynkkynen <tuomas@tuxera.com> dateTue 28 Nov 2017, 14:51 (9 years ago) parent652842d
2 files changed+14
pkgs/development/compilers/llvm/4/llvm.nix+7 pkgs/development/compilers/llvm/5/llvm.nix+7
pkgs/development/compilers/llvm/4/llvm.nix+7
@@ -24,6 +24,11 @@
2424let
2525 src = fetch "llvm" "0l9bf7kdwhlj0kq1hawpyxhna1062z3h7qcz2y8nfl9dz2qksy6s";
2626
27+ aarch64Patch = fetchpatch {
28+ url = https://reviews.llvm.org/file/data/2oqw5rhhklsapbjrhlpd/PHID-FILE-lvo4fcs6hjvkxb5wneg2/D40423.diff;
29+ sha256 = "0b0h7n7lxw33pn2j061hm9050zn263gmiig937g5cmcvjimxlybb";
30+ };
31+
2732 # Used when creating a version-suffixed symlink of libLLVM.dylib
2833 shortVersion = with stdenv.lib;
2934 concatStringsSep "." (take 2 (splitString "." release_version));
@@ -81,6 +86,8 @@ in stdenv.mkDerivation rec {
8186 substituteInPlace lib/esan/esan_sideline_linux.cpp \
8287 --replace 'struct sigaltstack' 'stack_t'
8388 )
89+ '' + stdenv.lib.optionalString stdenv.isAarch64 ''
90+ patch -p0 < ${aarch64Patch}
8491 '';
8592
8693 # hacky fix: created binaries need to be run before installation
pkgs/development/compilers/llvm/5/llvm.nix+7
@@ -24,6 +24,11 @@
2424let
2525 src = fetch "llvm" "1nin64vz21hyng6jr19knxipvggaqlkl2l9jpd5czbc4c2pcnpg3";
2626
27+ aarch64Patch = fetchpatch {
28+ url = https://reviews.llvm.org/file/data/2oqw5rhhklsapbjrhlpd/PHID-FILE-lvo4fcs6hjvkxb5wneg2/D40423.diff;
29+ sha256 = "0b0h7n7lxw33pn2j061hm9050zn263gmiig937g5cmcvjimxlybb";
30+ };
31+
2732 # Used when creating a version-suffixed symlink of libLLVM.dylib
2833 shortVersion = with stdenv.lib;
2934 concatStringsSep "." (take 2 (splitString "." release_version));
@@ -75,6 +80,8 @@ in stdenv.mkDerivation rec {
7580
7681 # Revert compiler-rt commit that makes codesign mandatory
7782 patch -p1 -i ${./compiler-rt-codesign.patch} -d projects/compiler-rt
83+ '' + stdenv.lib.optionalString stdenv.isAarch64 ''
84+ patch -p0 < ${aarch64Patch}
7885 '';
7986
8087 # hacky fix: created binaries need to be run before installation