[PATCH] D18501: Fix <cmath> compilation on FreeBSD
Dimitry Andric via cfe-commits
cfe-commits at lists.llvm.org
Sat Apr 2 06:39:28 PDT 2016
dim abandoned this revision.
dim added a comment.
Yes, this was indeed the wrong include order. During the latter stages of FreeBSD's buildworld, the compiler is invoked with `-nostdinc++`, but `/usr/include` was put before the libc++ include directory, `/usr/include/c++/v1`. So as @rsmith remarked, the system's `math.h` was found before the one from libc++, causing the complaints about missing declarations.
http://reviews.llvm.org/D18501
More information about the cfe-commits
mailing list