[llvm-bugs] [Bug 33719] Libc++ shipped math.h and -isystem breakage
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Jul 8 15:57:32 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33719
Dimitry Andric <dimitry at andric.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |dimitry at andric.com
Resolution|--- |INVALID
--- Comment #1 from Dimitry Andric <dimitry at andric.com> ---
The solution is simple: do not append -isystem /usr/include to your command
line. If you do so, and want to compile C++ sources, you must also make sure
to add a -isystem option that points to your C++ headers, and *before* the
-isystem /usr/include option.
This -isystem option is sometimes added by Qt projects, for unknown reasons.
(There is never a good reason, since /usr/include is always in the include
path, so adding it explicitly is superfluous at best, erroneous at worst.)
For Qt based project files (.pro or .pri), ensure the INCLUDEPATH variable does
*not* have /usr/include in it.
--
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/20170708/c20f9f1a/attachment.html>
More information about the llvm-bugs
mailing list