Merge pull request #86223 from pikajude/darwin-static-eval

pkgsStatic: use clang for C compiler on Darwin
This commit is contained in:
Silvan Mosberger
2020-09-30 23:44:18 +02:00
committed by GitHub
3 changed files with 10 additions and 5 deletions
+2
View File
@@ -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;