[PATCH] D14954: [x86] Exclusion of incorrect include headers paths for MCU target
Andrey Bokhanko via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 24 07:31:29 PST 2015
andreybokhanko created this revision.
andreybokhanko added reviewers: ddunbar, rnk, mkuper.
andreybokhanko added a subscriber: cfe-commits.
This patch excludes incorrect include headers paths for MCU target.
http://reviews.llvm.org/D14954
Files:
lib/Frontend/InitHeaderSearch.cpp
test/Driver/elfiamcu-header-search.c
Index: lib/Frontend/InitHeaderSearch.cpp
===================================================================
--- lib/Frontend/InitHeaderSearch.cpp
+++ lib/Frontend/InitHeaderSearch.cpp
@@ -216,6 +216,7 @@
case llvm::Triple::Bitrig:
case llvm::Triple::NaCl:
case llvm::Triple::PS4:
+ case llvm::Triple::ELFIAMCU:
break;
case llvm::Triple::Win32:
if (triple.getEnvironment() != llvm::Triple::Cygnus)
@@ -318,6 +319,7 @@
case llvm::Triple::CloudABI:
case llvm::Triple::RTEMS:
case llvm::Triple::NaCl:
+ case llvm::Triple::ELFIAMCU:
break;
case llvm::Triple::PS4: {
// <isysroot> gets prepended later in AddPath().
Index: test/Driver/elfiamcu-header-search.c
===================================================================
--- test/Driver/elfiamcu-header-search.c
+++ test/Driver/elfiamcu-header-search.c
@@ -0,0 +1,6 @@
+// REQUIRES: x86-registered-target
+
+// RUN: %clang -target i386-pc-elfiamcu -c -v %s 2>&1 | FileCheck %s
+// CHECK-NOT: /usr/include
+// CHECK-NOT: /usr/local/include
+
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14954.41045.patch
Type: text/x-patch
Size: 1053 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151124/724b1cd7/attachment-0001.bin>
More information about the cfe-commits
mailing list