commit | 630766057eabe78f9bb2e0c0d023223fb8d0174e | [log] [tgz] |
---|---|---|
author | Roman Divacky <rdivacky@freebsd.org> | Tue Mar 01 18:08:03 2011 +0000 |
committer | Roman Divacky <rdivacky@freebsd.org> | Tue Mar 01 18:08:03 2011 +0000 |
tree | 40e2cb88d959ea4e6bcb31c08d70beb5868267ed | |
parent | 20f1462f817ac1374f42c6d62853f137feff147b [diff] [blame] |
On FreeBSD, make sure /usr/local/include is *not* in the default include path. This avoids accidentally including the wrong headers. Patch by Dimitry Andric! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126761 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Frontend/InitHeaderSearch.cpp b/lib/Frontend/InitHeaderSearch.cpp index 2e3162c..2a27fb1 100644 --- a/lib/Frontend/InitHeaderSearch.cpp +++ b/lib/Frontend/InitHeaderSearch.cpp
@@ -428,6 +428,7 @@ llvm::Triple::OSType os = triple.getOS(); switch (os) { + case llvm::Triple::FreeBSD: case llvm::Triple::NetBSD: break; default: