diff options
Diffstat (limited to 'pkgs/development/compilers/llvm/11/default.nix')
-rw-r--r-- | pkgs/development/compilers/llvm/11/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/compilers/llvm/11/default.nix b/pkgs/development/compilers/llvm/11/default.nix index 6f73f50e318..a94b9d64d49 100644 --- a/pkgs/development/compilers/llvm/11/default.nix +++ b/pkgs/development/compilers/llvm/11/default.nix @@ -5,7 +5,7 @@ , targetLlvmLibraries # libraries, but from the next stage, for cross , targetLlvm # This is the default binutils, but with *this* version of LLD rather -# than the default LLVM verion's, if LLD is the choice. We use these for +# than the default LLVM version's, if LLD is the choice. We use these for # the `useLLVM` bootstrapping below. , bootBintoolsNoLibc ? if stdenv.targetPlatform.linker == "lld" @@ -117,7 +117,8 @@ let # pick clang appropriate for package set we are targeting clang = - /**/ if stdenv.targetPlatform.useLLVM or false then tools.clangUseLLVM + /**/ if stdenv.targetPlatform.libc == null then tools.clangNoLibc + else if stdenv.targetPlatform.useLLVM or false then tools.clangUseLLVM else if (pkgs.targetPackages.stdenv or stdenv).cc.isGNU then tools.libstdcxxClang else tools.libcxxClang; |