Skip to content

Commit

Permalink
llvm-{4,5}: fix build by using older gcc on i686-linux
Browse files Browse the repository at this point in the history
This is mainly to unblock 32-bit OpenGL.
  • Loading branch information
vcunat committed Nov 12, 2017
1 parent 9e7021c commit 24f2e73
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -6114,11 +6114,15 @@ with pkgs;
cmake = cmake.override { isBootstrap = true; };
libxml2 = libxml2.override { pythonSupport = false; };
python2 = callPackage ../development/interpreters/python/cpython/2.7/boot.nix { inherit (darwin) CF configd; };
} // stdenv.lib.optionalAttrs (stdenv.cc.isGNU && stdenv.hostPlatform.isi686) {
stdenv = overrideCC stdenv gcc6; # with gcc-7: undefined reference to `__divmoddi4'
});

llvmPackages_5 = callPackage ../development/compilers/llvm/5 {
llvmPackages_5 = callPackage ../development/compilers/llvm/5 ({
inherit (stdenvAdapters) overrideCC;
};
} // stdenv.lib.optionalAttrs (stdenv.cc.isGNU && stdenv.hostPlatform.isi686) {
stdenv = overrideCC stdenv gcc6; # with gcc-7: undefined reference to `__divmoddi4'
});

manticore = callPackage ../development/compilers/manticore { };

Expand Down

0 comments on commit 24f2e73

Please sign in to comment.