[PATCH] D159042: [Driver] Add LiteOS and z/OS to ShouldAddDefaultIncludePaths()
Brad Smith via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 28 17:09:55 PDT 2023
brad created this revision.
brad added reviewers: MaskRay, kpdev42, abhina.sreeskantharajan.
brad added a project: clang.
Herald added subscribers: abrachet, phosek.
Herald added a project: All.
brad requested review of this revision.
LiteOS (OHOS) and z/ZOS already have header path handling in the Driver, so add the OS's to ShouldAddDefaultIncludePaths().
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D159042
Files:
clang/lib/Lex/InitHeaderSearch.cpp
Index: clang/lib/Lex/InitHeaderSearch.cpp
===================================================================
--- clang/lib/Lex/InitHeaderSearch.cpp
+++ clang/lib/Lex/InitHeaderSearch.cpp
@@ -332,17 +332,19 @@
case llvm::Triple::AIX:
case llvm::Triple::Emscripten:
case llvm::Triple::FreeBSD:
+ case llvm::Triple::Fuchsia:
+ case llvm::Triple::Haiku:
+ case llvm::Triple::Hurd:
+ case llvm::Triple::Linux:
+ case llvm::Triple::LiteOS:
case llvm::Triple::NaCl:
case llvm::Triple::NetBSD:
case llvm::Triple::OpenBSD:
case llvm::Triple::PS4:
case llvm::Triple::PS5:
- case llvm::Triple::Fuchsia:
- case llvm::Triple::Haiku:
- case llvm::Triple::Hurd:
- case llvm::Triple::Linux:
case llvm::Triple::Solaris:
case llvm::Triple::WASI:
+ case llvm::Triple::ZOS:
return false;
case llvm::Triple::Win32:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159042.554109.patch
Type: text/x-patch
Size: 845 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230829/deede55b/attachment.bin>
More information about the cfe-commits
mailing list