nixpkgs/pkgs/development/compilers/llvm
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
..
5 llvmPackages_*: respect cc for target when choosing C++ flavour 2022-01-07 14:42:41 +01:00
6 llvmPackages_*: respect cc for target when choosing C++ flavour 2022-01-07 14:42:41 +01:00
7 llvmPackages_*: respect cc for target when choosing C++ flavour 2022-01-07 14:42:41 +01:00
8 llvmPackages_*: respect cc for target when choosing C++ flavour 2022-01-07 14:42:41 +01:00
9 llvmPackages_*: respect cc for target when choosing C++ flavour 2022-01-07 14:42:41 +01:00
10 llvmPackages_*: respect cc for target when choosing C++ flavour 2022-01-07 14:42:41 +01:00
11 llvmPackages_*: respect cc for target when choosing C++ flavour 2022-01-07 14:42:41 +01:00
12 llvmPackages_*: respect cc for target when choosing C++ flavour 2022-01-07 14:42:41 +01:00
13 llvmPackages_*: respect cc for target when choosing C++ flavour 2022-01-07 14:42:41 +01:00
common/compiler-rt compiler-rt: remove <cyclades.h> from libsanitizer 2021-09-20 19:37:19 +01:00
git llvmPackages_*: respect cc for target when choosing C++ flavour 2022-01-07 14:42:41 +01:00
rocm llvmPackages_rocm.llvm: 4.3.1 → 4.5.2 2021-12-15 16:57:22 +01:00
aarch64.patch
clang-6-10-LLVMgold-path.patch llvmPackages*.clang: fix linker invocation with LLVMgold plugin 2021-05-18 16:15:03 +02:00
clang-11-12-LLVMgold-path.patch llvmPackages*.clang: fix linker invocation with LLVMgold plugin 2021-05-18 16:15:03 +02:00
exegesis-force-bdver2.patch llvmPackages_12.llvm: fix building on older CPUs 2021-04-17 01:55:53 +00:00
libcxx-0001-musl-hacks.patch
multi.nix clang, cc-wrapper: Move --gcc-toolchain logic into CC wrapper 2021-01-24 15:49:32 -05:00
TLI-musl.patch
update-git.py llvm/update-git.py: Automatically commit the changes 2021-08-28 22:54:31 +02:00
update.sh llvmPackages/update.sh: Support LLVM 13+ 2021-08-28 22:55:08 +02:00