3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #33374 from dtzWill/update/llvm-5-default

Update LLVM default 4 -> 5
This commit is contained in:
Daiderd Jordan 2018-02-11 18:29:26 +01:00 committed by GitHub
commit 69779a5f7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 50 additions and 22 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, llvmPackages_5, llvm_5 }:
{ stdenv, fetchFromGitHub, cmake, llvmPackages }:
stdenv.mkDerivation rec {
version = "0.1.1";
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
sha256 = "01yqjyi25f99bfmxxwyh45k7j84z0zg7n9jl8gg0draf96mzdh06";
};
buildInputs = [ cmake llvmPackages_5.clang-unwrapped llvm_5 ];
buildInputs = [ cmake llvmPackages.clang-unwrapped llvmPackages.llvm ];
cmakeFlags = [
"-DZIG_LIBC_INCLUDE_DIR=${stdenv.cc.libc_dev}/include"

View file

@ -258,7 +258,7 @@ self: super: builtins.intersectAttrs super {
}
);
llvm-hs = super.llvm-hs.override { llvm-config = pkgs.llvm_5; };
llvm-hs = super.llvm-hs.override { llvm-config = pkgs.llvm; };
# Needs help finding LLVM.
spaceprobe = addBuildTool super.spaceprobe self.llvmPackages.llvm;

View file

@ -1,16 +1,25 @@
{ fetchurl, stdenv, pkgconfig, libpng, glib /*just passthru*/ }:
{ stdenv, fetchurl, fetchpatch, autoconf, automake, libtool, pkgconfig, libpng, glib /*just passthru*/ }:
stdenv.mkDerivation rec {
name = "pixman-0.34.0";
name = "pixman-${version}";
version = "0.34.0";
src = fetchurl {
url = "mirror://xorg/individual/lib/${name}.tar.bz2";
sha256 = "184lazwdpv67zrlxxswpxrdap85wminh1gmq1i5lcz6iycw39fir";
};
patches = [];
patches = stdenv.lib.optionals stdenv.cc.isClang [
(fetchpatch {
name = "builtin-shuffle.patch";
url = https://patchwork.freedesktop.org/patch/177506/raw;
sha256 = "0rvraq93769dy2im2m022rz99fcdxprgc2fbmasnddcwrqy1x3xr";
})
];
nativeBuildInputs = [ pkgconfig ]
++ stdenv.lib.optionals stdenv.cc.isClang [ autoconf automake libtool ];
nativeBuildInputs = [ pkgconfig ];
buildInputs = stdenv.lib.optional doCheck libpng;
configureFlags = stdenv.lib.optional stdenv.isArm "--disable-arm-iwmmxt";

View file

@ -0,0 +1,22 @@
diff --git a/icuSources/i18n/ucoleitr.cpp b/icuSources/i18n/ucoleitr.cpp
index ecc94c9..936452f 100644
--- a/icuSources/i18n/ucoleitr.cpp
+++ b/icuSources/i18n/ucoleitr.cpp
@@ -320,7 +320,7 @@ ucol_nextProcessed(UCollationElements *elems,
int32_t *ixHigh,
UErrorCode *status)
{
- return (UCollationPCE::UCollationPCE(elems)).nextProcessed(ixLow, ixHigh, status);
+ return (UCollationPCE(elems)).nextProcessed(ixLow, ixHigh, status);
}
@@ -384,7 +384,7 @@ ucol_previousProcessed(UCollationElements *elems,
int32_t *ixHigh,
UErrorCode *status)
{
- return (UCollationPCE::UCollationPCE(elems)).previousProcessed(ixLow, ixHigh, status);
+ return (UCollationPCE(elems)).previousProcessed(ixLow, ixHigh, status);
}
U_NAMESPACE_BEGIN

View file

@ -3,6 +3,8 @@
appleDerivation {
nativeBuildInputs = [ cctools ];
patches = [ ./clang-5.patch ];
postPatch = ''
substituteInPlace makefile \
--replace /usr/bin/ "" \

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, fetchpatch, makeWrapper, cmake, llvmPackages_5, kernel
{ stdenv, fetchFromGitHub, fetchpatch, makeWrapper, cmake, llvmPackages, kernel
, flex, bison, elfutils, python, pythonPackages, luajit, netperf, iperf, libelf }:
stdenv.mkDerivation rec {
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
};
buildInputs = [
llvmPackages_5.llvm llvmPackages_5.clang-unwrapped kernel
llvmPackages.llvm llvmPackages.clang-unwrapped kernel
elfutils python pythonPackages.netaddr luajit netperf iperf
];

View file

@ -5720,9 +5720,7 @@ with pkgs;
'';
});
crystal = callPackage ../development/compilers/crystal {
llvm = llvm_5;
};
crystal = callPackage ../development/compilers/crystal { };
devpi-client = callPackage ../development/tools/devpi-client {};
@ -6360,7 +6358,7 @@ with pkgs;
llvm_35 = llvmPackages_35.llvm;
llvm_34 = llvmPackages_34.llvm;
llvmPackages = recurseIntoAttrs llvmPackages_4;
llvmPackages = recurseIntoAttrs llvmPackages_5;
llvmPackagesSelf = llvmPackages_34.override {
stdenv = libcxxStdenv;
@ -6386,7 +6384,11 @@ with pkgs;
inherit (stdenvAdapters) overrideCC;
};
llvmPackages_4 = callPackage ../development/compilers/llvm/4 ({
llvmPackages_4 = callPackage ../development/compilers/llvm/4 {
inherit (stdenvAdapters) overrideCC;
};
llvmPackages_5 = callPackage ../development/compilers/llvm/5 ({
inherit (stdenvAdapters) overrideCC;
} // stdenv.lib.optionalAttrs stdenv.isDarwin {
cmake = cmake.override {
@ -6397,10 +6399,6 @@ with pkgs;
python2 = callPackage ../development/interpreters/python/cpython/2.7/boot.nix { inherit (darwin) CF configd; };
});
llvmPackages_5 = callPackage ../development/compilers/llvm/5 {
inherit (stdenvAdapters) overrideCC;
};
manticore = callPackage ../development/compilers/manticore { };
mentorToolchains = recurseIntoAttrs (
@ -8082,7 +8080,6 @@ with pkgs;
ycmd = callPackage ../development/tools/misc/ycmd {
inherit (darwin.apple_sdk.frameworks) Cocoa;
llvmPackages = llvmPackages_5;
python = python2;
};
@ -10253,8 +10250,6 @@ with pkgs;
# makes it slower, but during runtime we link against just mesa_drivers
# through /run/opengl-driver*, which is overriden according to config.grsecurity
# grsecEnabled = true; # no more support in nixpkgs ATM
llvmPackages = llvmPackages_5;
});
mesa_glu = mesaDarwinOr (callPackage ../development/libraries/mesa-glu { });

View file

@ -9738,7 +9738,7 @@ in {
locustio = callPackage ../development/python-modules/locustio { };
llvmlite = callPackage ../development/python-modules/llvmlite {llvm=pkgs.llvm_5;};
llvmlite = callPackage ../development/python-modules/llvmlite { llvm = pkgs.llvm; };
lockfile = buildPythonPackage rec {
pname = "lockfile";