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
nostdclanginc.patch
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
