[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 13:14:02 PST 2024


================
@@ -312,7 +312,8 @@ bool InitHeaderSearch::ShouldAddDefaultIncludePaths(
     break;
 
   case llvm::Triple::UnknownOS:
-    if (triple.isWasm())
+    if (triple.isWasm() || ((triple.getVendor() == llvm::Triple::Apple) &&
+                            triple.isOSBinFormatMachO()))
----------------
ian-twilightcoder wrote:

Ok sure, we can use it in the driver too

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


More information about the cfe-commits mailing list