[cfe-dev] clang++ include path problem
Richard Smith
richard at metafoo.co.uk
Mon May 13 14:48:06 PDT 2013
On Thu, May 9, 2013 at 3:43 AM, Gábor Kozár <kozargabor at gmail.com> wrote:
> Hi,
>
> I'm using clang++ -### to get the -cc1 command I can add my own -cc1
> options to. Unfortunately, the command I'm getting contains wrong include
> paths.
>
> I have CPPFLAGS and LDFLAGS all set with the correct include paths. Which
> variable do I need to set for this to work correctly?
>
You need to pass your CPPFLAGS to clang yourself:
clang++ $CPPFLAGS ...
The passing of $CPPFLAGS to the preprocessor is typically performed by the
build system (eg make), not by the compiler itself. See
http://www.gnu.org/software/make/manual/make.html#Catalogue-of-Rules
> Thanks!
>
> Gabor
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130513/3f8785dd/attachment.html>
More information about the cfe-dev
mailing list