[clang] [Darwin][Driver][clang] apple-none-macho orders the resource directory after internal-externc-isystem when nostdlibinc is used (PR #120507)
Ian Anderson via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 20 10:25:19 PST 2024
================
@@ -1018,13 +1018,19 @@ bool Darwin::hasBlocksRuntime() const {
}
}
-void Darwin::AddCudaIncludeArgs(const ArgList &DriverArgs,
- ArgStringList &CC1Args) const {
+void MachO::AddCudaIncludeArgs(const ArgList &DriverArgs,
+ ArgStringList &CC1Args) const {
+ if (!isTargetAppleBased())
+ return ToolChain::AddCudaIncludeArgs(DriverArgs, CC1Args);
----------------
ian-twilightcoder wrote:
>From `Driver::getToolChain` you get it for these
arch-vendor-win32-macho
arch-vendor-windows-macho
arch-vendor-none-macho
The only one I really want to change is arch-apple-none-macho, I don't want to disturb any of the others. But that's a good point, it would probably be cleaner to make an AppleMachO toolchain in between the existing MachO and Darwin ones
https://github.com/llvm/llvm-project/pull/120507
More information about the cfe-commits
mailing list