[cfe-commits] [patch] Add a -nostdclanginc option to clang-cc
Chris Lattner
clattner at apple.com
Sun Oct 4 23:35:08 PDT 2009
On Oct 4, 2009, at 8:01 PM, Rafael Espindola wrote:
> The attached patch adds a -nostdclanginc option to clang-cc. With this
> option clang-cc will not use its own binary-relative include paths.
> This is useful when using just the clang preprocessor with gcc which
> might not like clang headers.
>
> Another way to do this is to move this logic to clang (the driver).
> This might also be a bit faster, since the driver already knows which
> clang-cc will be used and wouldn't need to call GetMainExecutable.
> Which version is better?
This patch looks fine to me, but how does the driver pass -
nostdclanginc down?
-Chris
More information about the cfe-commits
mailing list