|
|
|
@ -298,7 +298,10 @@ stdenv.mkDerivation { |
|
|
|
|
# vs libstdc++, etc.) since Darwin isn't `useLLVM` on all counts. (See |
|
|
|
|
# https://clang.llvm.org/docs/Toolchain.html for all the axes one might |
|
|
|
|
# break `useLLVM` into.) |
|
|
|
|
+ optionalString (isClang && gccForLibs != null && targetPlatform.isLinux && !(stdenv.targetPlatform.useLLVM or false)) '' |
|
|
|
|
+ optionalString (isClang && gccForLibs != null |
|
|
|
|
&& targetPlatform.isLinux |
|
|
|
|
&& !(stdenv.targetPlatform.useAndroidPrebuilt or false) |
|
|
|
|
&& !(stdenv.targetPlatform.useLLVM or false)) '' |
|
|
|
|
echo "--gcc-toolchain=${gccForLibs}" >> $out/nix-support/cc-cflags |
|
|
|
|
'' |
|
|
|
|
|
|
|
|
|