[PATCH] D129446: [clang][driver] Find Apple default SDK path

Duncan P. N. Exon Smith via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 28 04:52:13 PDT 2022


dexonsmith added a subscriber: arphaman.
dexonsmith added a comment.

I’m not at Apple anymore, but this is a long-standing platform decision that is intentional and seems unlikely to change. Note that `/usr/bin/clang` isn’t really clang, but a tool called `xcrun` which adds environment variables to help find a default SDK before executing `/path/to/toolchain/usr/bin/clang`.

When the driver is called directly it expects the build system to provide the appropriate SDK. There are situations where it could cause a problem for the driver to hunt around tor arbitrary SDKs.

If you still want to pursue this, @arphaman might be able to help find someone in a position to consider the impact / policy.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D129446/new/

https://reviews.llvm.org/D129446



More information about the cfe-commits mailing list