From: Roman Divacky Date: Tue, 1 Mar 2011 18:08:03 +0000 (+0000) Subject: On FreeBSD, make sure /usr/local/include is *not* in the default include X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=630766057eabe78f9bb2e0c0d023223fb8d0174e;p=clang 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 2e3162c0a3..2a27fb1bca 100644 --- a/lib/Frontend/InitHeaderSearch.cpp +++ b/lib/Frontend/InitHeaderSearch.cpp @@ -428,6 +428,7 @@ void InitHeaderSearch::AddDefaultCIncludePaths(const llvm::Triple &triple, llvm::Triple::OSType os = triple.getOS(); switch (os) { + case llvm::Triple::FreeBSD: case llvm::Triple::NetBSD: break; default: