================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits