================
@@ -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()))
----------------
carlocab wrote:

Maybe a bit much for only one call site, but `triple.isAppleMacho()` seems much 
nicer to me here. (For reference, `isTargetMachineMac` also has only one caller 
AFAICT)

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

Reply via email to