diff options
author | Silvan Mosberger <contact@infinisil.com> | 2020-09-30 23:44:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-30 23:44:18 +0200 |
commit | 4aabac8d88f2020e7522edcfddd08a0dfcf4b23c (patch) | |
tree | f6ec1ce121adde114bb16b5180044054fff30d00 /pkgs/stdenv/cross/default.nix | |
parent | 4bd0e5603db190620ff49caa328a23e12ebf3682 (diff) | |
parent | 0de6275003170cb82e5f9a3bdfb649ff22b8b12a (diff) |
Merge pull request #86223 from pikajude/darwin-static-eval
pkgsStatic: use clang for C compiler on Darwin
Diffstat (limited to 'pkgs/stdenv/cross/default.nix')
-rw-r--r-- | pkgs/stdenv/cross/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/stdenv/cross/default.nix b/pkgs/stdenv/cross/default.nix index 6ac03b7908fec..064e1836b17c9 100644 --- a/pkgs/stdenv/cross/default.nix +++ b/pkgs/stdenv/cross/default.nix @@ -63,6 +63,8 @@ in lib.init bootStages ++ [ # `tryEval` wouldn't catch, wrecking accessing previous stages # when there is a C compiler and everything should be fine. then throw "no C compiler provided for this platform" + else if crossSystem.isDarwin + then buildPackages.llvmPackages.clang else if crossSystem.useLLVM or false then buildPackages.llvmPackages_8.lldClang else buildPackages.gcc; |