llvmPackages.clang: add systemLibcxxClang (primarily for Darwin)

This commit is contained in:
Randy Eckenrode
2025-04-13 13:57:35 -04:00
committed by Emily
parent e53d3167d9
commit 5ea679485d
@@ -222,6 +222,15 @@ let
extraBuildCommands = mkExtraBuildCommands cc;
};
# Darwin uses the system libc++ by default. It is set up as its own clang definition so that `libcxxClang`
# continues to use the libc++ from LLVM.
systemLibcxxClang = wrapCCWith rec {
cc = tools.clang-unwrapped;
libcxx = darwin.libcxx;
extraPackages = [ targetLlvmLibraries.compiler-rt ];
extraBuildCommands = mkExtraBuildCommands cc;
};
lld = callPackage ./lld {
};