[cfe-commits] [patch] Add a -nostdclanginc option to clang-cc

Rafael Espindola espindola at google.com
Sun Oct 4 20:01:01 PDT 2009


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?

Cheers,
-- 
Rafael Ávila de Espíndola
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nostdclanginc.patch
Type: application/octet-stream
Size: 3114 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20091004/82608a14/attachment.obj>


More information about the cfe-commits mailing list