nixpkgs/pkgs/development/compilers/llvm/8
sternenseemann 766f5ffb76 llvmPackages_*: respect cc for target when choosing C++ flavour
llvmPackages_*.clang should check the default compiler for the package
set it is targeting (targetPackages.stdenv.cc) instead of the compiler
that has been used to build it (stdenv.cc) in order to get some sense of
whether to use libc++ or libstdc++.

Since we are now inspecting targetPackages in the llvmPackages.clang
attribute, we need to avoid using it in the cross stdenv — which just
forces us to explicitly request libcxxClang for darwin instead of
relying on the clang attribute to pick it for us.

We also need to do something similar for targetPackages.stdenv.cc: Here
the llvmPackages.clang logic would work as we want (inspect
targetPackages.stdenv.cc and if it doesn't exist, make the choice based
on stdenv.cc), but it gets locked in a cycle with the previous package.
We can easily break this, however: We know that the previous set had
clang and the next one doesn't exist, so we'd choose libcxxClang any day
of the week.
2022-01-07 14:42:41 +01:00
..
bintools treewide: Try to make a few bootstrapping things more consistent 2021-05-12 00:14:56 +00:00
clang llvmPackages*.clang: fix linker invocation with LLVMgold plugin 2021-05-18 16:15:03 +02:00
compiler-rt pkgsStatic.llvmPackages_{{5..13},git}.compiler-rt: drop unused musl patches 2021-10-21 18:42:31 +01:00
libcxx llvmPackages.libcxx: unset _LIBCPP_USE_AVAILABILITY_APPLE 2021-12-18 10:09:25 -05:00
libcxxabi llvmPackages: Fix more inconsistencies 2021-05-12 00:16:11 +00:00
libunwind llvmPackages: Fix more inconsistencies 2021-05-12 00:16:11 +00:00
lld llvmPackages: Fix more inconsistencies 2021-05-12 00:16:11 +00:00
lldb lldb: fix 8&9 2021-06-10 21:01:10 +01:00
llvm llvm_{5..11}: pull upstream build fix for for gcc-12 2021-11-21 09:50:01 +00:00
openmp llvmPackages: Fix more inconsistencies 2021-05-12 00:16:11 +00:00
default.nix llvmPackages_*: respect cc for target when choosing C++ flavour 2022-01-07 14:42:41 +01:00