[clang] [clang][Driver][Darwin] Use `xcselect` for `*-apple-darwin*` targets too (PR #186683)
Carlo Cabrera via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 17 12:04:31 PDT 2026
================
@@ -2651,6 +2644,19 @@ void Darwin::AddDeploymentTarget(DerivedArgList &Args) const {
const std::string OSVersionStr = OSVersion.getAsString();
// Set the tool chain target information.
if (Platform == MacOS) {
+#ifdef CLANG_USE_XCSELECT
+ // If we don't have an SDK yet and are on macOS, try to inject one using
+ // xcselect, except when passed --no-sysroot.
+ if (TryXcselect && !SDKInfo) {
----------------
carlocab wrote:
Did this in e3868a14509c9ddc4f7785d230495335f4648f8f. Let me know if I misunderstood the suggestion.
https://github.com/llvm/llvm-project/pull/186683
More information about the cfe-commits
mailing list