[clang] e4cb692 - [Driver] Add NaCl to ShouldAddDefaultIncludePaths()

Brad Smith via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 24 18:11:08 PDT 2023


Author: Brad Smith
Date: 2023-08-24T21:09:09-04:00
New Revision: e4cb692526030a05424ee8299012ee76a7a0e3ca

URL: https://github.com/llvm/llvm-project/commit/e4cb692526030a05424ee8299012ee76a7a0e3ca
DIFF: https://github.com/llvm/llvm-project/commit/e4cb692526030a05424ee8299012ee76a7a0e3ca.diff

LOG: [Driver] Add NaCl to ShouldAddDefaultIncludePaths()

The Driver for NaCl already handled the header paths so disable
the default fallback path.

Added: 
    

Modified: 
    clang/lib/Lex/InitHeaderSearch.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Lex/InitHeaderSearch.cpp b/clang/lib/Lex/InitHeaderSearch.cpp
index 61acf01f43562b..dc5554844f8482 100644
--- a/clang/lib/Lex/InitHeaderSearch.cpp
+++ b/clang/lib/Lex/InitHeaderSearch.cpp
@@ -232,7 +232,6 @@ void InitHeaderSearch::AddDefaultCIncludePaths(const llvm::Triple &triple,
   if (HSOpts.UseStandardSystemIncludes) {
     switch (os) {
     case llvm::Triple::CloudABI:
-    case llvm::Triple::NaCl:
     case llvm::Triple::ELFIAMCU:
       break;
     case llvm::Triple::Win32:
@@ -298,7 +297,6 @@ void InitHeaderSearch::AddDefaultCIncludePaths(const llvm::Triple &triple,
   switch (os) {
   case llvm::Triple::CloudABI:
   case llvm::Triple::RTEMS:
-  case llvm::Triple::NaCl:
   case llvm::Triple::ELFIAMCU:
     break;
   default:
@@ -343,6 +341,7 @@ bool InitHeaderSearch::ShouldAddDefaultIncludePaths(
   case llvm::Triple::AIX:
   case llvm::Triple::Emscripten:
   case llvm::Triple::FreeBSD:
+  case llvm::Triple::NaCl:
   case llvm::Triple::NetBSD:
   case llvm::Triple::OpenBSD:
   case llvm::Triple::PS4:


        


More information about the cfe-commits mailing list