llvm: Include aarch64 patch in repo

The URL is already a dead link.
This commit is contained in:
Tuomas Tynkkynen
2017-11-29 17:01:17 +02:00
parent 99bab78abd
commit fc26ff04b2
3 changed files with 53 additions and 12 deletions
+1 -6
View File
@@ -24,11 +24,6 @@
let
src = fetch "llvm" "1nin64vz21hyng6jr19knxipvggaqlkl2l9jpd5czbc4c2pcnpg3";
aarch64Patch = fetchpatch {
url = https://reviews.llvm.org/file/data/2oqw5rhhklsapbjrhlpd/PHID-FILE-lvo4fcs6hjvkxb5wneg2/D40423.diff;
sha256 = "0b0h7n7lxw33pn2j061hm9050zn263gmiig937g5cmcvjimxlybb";
};
# Used when creating a version-suffixed symlink of libLLVM.dylib
shortVersion = with stdenv.lib;
concatStringsSep "." (take 2 (splitString "." release_version));
@@ -81,7 +76,7 @@ in stdenv.mkDerivation rec {
# Revert compiler-rt commit that makes codesign mandatory
patch -p1 -i ${./compiler-rt-codesign.patch} -d projects/compiler-rt
'' + stdenv.lib.optionalString stdenv.isAarch64 ''
patch -p0 < ${aarch64Patch}
patch -p0 < ${../aarch64.patch}
'';
# hacky fix: created binaries need to be run before installation