[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:56:46 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:

@jroelofs what do you think? Personally I prefer an `AppleMachO` toolchain instead of sprinkling `isTargetAppleBased` in a bunch of places.

https://github.com/llvm/llvm-project/pull/120507


More information about the cfe-commits mailing list