diff options
author | Shea Levy <shea@shealevy.com> | 2018-02-18 00:11:28 -0500 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2018-02-18 00:11:28 -0500 |
commit | 3bec7812887923fc3c0c7ab804196c1e086f2acd (patch) | |
tree | b5843ee357a0a90817b2394465cdbd1cb5b05d2a | |
parent | e288febee0809db7c594ceb42e655dd5d43a6369 (diff) | |
download | nixpkgs-3bec7812887923fc3c0c7ab804196c1e086f2acd.tar nixpkgs-3bec7812887923fc3c0c7ab804196c1e086f2acd.tar.gz nixpkgs-3bec7812887923fc3c0c7ab804196c1e086f2acd.tar.bz2 nixpkgs-3bec7812887923fc3c0c7ab804196c1e086f2acd.tar.lz nixpkgs-3bec7812887923fc3c0c7ab804196c1e086f2acd.tar.xz nixpkgs-3bec7812887923fc3c0c7ab804196c1e086f2acd.tar.zst nixpkgs-3bec7812887923fc3c0c7ab804196c1e086f2acd.zip |
Use gcc 7 for RISC-V support.
-rw-r--r-- | pkgs/top-level/all-packages.nix | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1b4fbf8c1e6..0c262e43a69 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5784,8 +5784,12 @@ with pkgs; gambit = callPackage ../development/compilers/gambit { }; gerbil = callPackage ../development/compilers/gerbil { }; - gccFun = callPackage ../development/compilers/gcc/6; - gcc = gcc6; + # !!! When updating to gcc7 everywhere we can get rid of the + # isRiscV overrides here and in gccCrossStageStatic + gccFun6 = callPackage ../development/compilers/gcc/6; + gccFun7 = callPackage ../development/compilers/gcc/7; + gccFun = if targetPlatform.isRiscV then gccFun7 else gccFun6; + gcc = if targetPlatform.isRiscV then gcc7 else gcc6; gcc-unwrapped = gcc.cc; gccStdenv = if stdenv.cc.isGNU then stdenv else stdenv.override { @@ -5865,6 +5869,7 @@ with pkgs; bintools = binutils-unwrapped; libc = libcCross1; }; + isl = if targetPlatform.isRiscV then isl_0_17 else isl_0_14; in wrapCCWith { name = "gcc-cross-wrapper"; cc = gccFun { @@ -5872,7 +5877,7 @@ with pkgs; inherit noSysDirs; # PGO seems to speed up compilation by gcc by ~10%, see #445 discussion profiledCompiler = with stdenv; (!isDarwin && (isi686 || isx86_64)); - isl = if !stdenv.isDarwin then isl_0_14 else null; + isl = if !stdenv.isDarwin then isl else null; # just for stage static crossStageStatic = true; |