[llvm-bugs] [Bug 34112] New: Clang 4.0.0 searches for system headers before headers in the source tree
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Aug 7 22:53:20 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=34112
Bug ID: 34112
Summary: Clang 4.0.0 searches for system headers before headers
in the source tree
Product: clang
Version: 4.0
Hardware: PC
OS: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: doctorwhoguy at gmail.com
CC: llvm-bugs at lists.llvm.org
Clang apparently searches for needed headers installed on the system before
headers that are included in the source tree of software being compiled, at
least when compiling bundled libraries. I have encountered this twice so far,
with the games Smokin Guns and eduke32. For example, Smokin Guns bundles the
source for the speex library, and when compiling the bundled speex library, it
finds and uses /usr/local/include/speex/speex_bits.h instead of
SmokinGuns-1.1/code/libspeex/include/speex/speex_bits.h Obviously if the
bundled and system libraries are the same, it compiles fine, but if the bundled
and system versions don't match, this results in a compilation error. The
correct behavior would surely be for Clang to look in the source tree first for
needed headers.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170808/00515ce3/attachment.html>
More information about the llvm-bugs
mailing list