[clang] [clang][driver] Don't emit an error on an unrecognized SDK name (PR #181897)
Cyndy Ishida via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 17 15:09:45 PST 2026
cyndyishida wrote:
I think this needs a `FIXME` at minimum.
> arm64-apple-visionos1.0-simulator for XRSimulator1.0.sdk/usr/include/libxml, or at least that's about as close to valid as we'll be able to figure out since we don't know if there's something special about libxml that might require a different triple.
My point is that given this target triple and sysroot, the real sysroot should be `XRSimulator1.0.sdk` where there is infact a `SDKSettings` file. This is pointing at user error, and if it's not user error because they know what they are doing, there should be a way for the user to opt out of the diagnostic, like with -Wno-incompatible-sysroot. While there may be legit reasons to handle it, it can also very well be a mistake, and my feeling is that should be the average case the compiler expects.
https://github.com/llvm/llvm-project/pull/181897
More information about the cfe-commits
mailing list