cc-wrapper: add libcxx for libcxxClang

clang needs to find headers + libraries for compiling with libc++. We
need to add a libcxx argument to cc-wrapper. This means you do not
have to pass in c++ headers directly.

This resolves the last case remaining of #30670. Darwin clang++ now
works properly.

Fixes #30670
This commit is contained in:
Matthew Bauer
2019-01-26 22:45:15 -05:00
parent cb14f1404a
commit 77550df8e6
4 changed files with 12 additions and 5 deletions
@@ -59,6 +59,7 @@ let
libcxxClang = wrapCCWith rec {
cc = tools.clang-unwrapped;
libcxx = targetLlvmLibraries.libcxx;
extraPackages = [
targetLlvmLibraries.libcxx
targetLlvmLibraries.libcxxabi