[clang] 196ff0c - [Driver] Add LiteOS and z/OS to ShouldAddDefaultIncludePaths()
Brad Smith via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 28 20:08:28 PDT 2023
Author: Brad Smith
Date: 2023-08-28T23:01:50-04:00
New Revision: 196ff0c7ddacf571a3fc6c9163e85fd91ecab6b3
URL: https://github.com/llvm/llvm-project/commit/196ff0c7ddacf571a3fc6c9163e85fd91ecab6b3
DIFF: https://github.com/llvm/llvm-project/commit/196ff0c7ddacf571a3fc6c9163e85fd91ecab6b3.diff
LOG: [Driver] Add LiteOS and z/OS to ShouldAddDefaultIncludePaths()
LiteOS (OHOS) and z/ZOS already have header path handling in the Driver, so add
the OS's to ShouldAddDefaultIncludePaths().
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D159042
Added:
Modified:
clang/lib/Lex/InitHeaderSearch.cpp
Removed:
################################################################################
diff --git a/clang/lib/Lex/InitHeaderSearch.cpp b/clang/lib/Lex/InitHeaderSearch.cpp
index dc5554844f8482..f7a319bdc14c4a 100644
--- a/clang/lib/Lex/InitHeaderSearch.cpp
+++ b/clang/lib/Lex/InitHeaderSearch.cpp
@@ -341,17 +341,19 @@ bool InitHeaderSearch::ShouldAddDefaultIncludePaths(
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:
More information about the cfe-commits
mailing list