[cfe-dev] libclang, someday?
cedric.venet at laposte.net
Sun Aug 10 05:12:34 PDT 2008
> On a similar note, how settled are you on the current command line
> interface to clang? I can't help but find it somewhat annoying that the
> current interface is wholly incompatible with GCC and, I suspect, other
> compilers. I patched it locally to support -c, -S and -Wall, to ignore
> valid -O flags, as well as allow -W and -Wextra as aliases for - Wall.
> Are you interested in changes like these?
> Other possible improvements would be a refactoring to use -f* and -m*
> like GCC. Also, it would be nice if the clang executable was able to
> link objects, emit native code, and defaulted to outputing a.out.
Are you aware of the ccc script and/or llvmc2 (I think there is a version
for clang, otherwise it should be pretty easy to do)?
Also, I may be wrong, but clang is more like cc1/cc1plus that gcc since this
is just the front end, or even less than these. For exemple the -O flags
don't do much sense for clang, but they will be usefull for opt.
I think the idea is to have llvmc2 be the equivalent of gcc.
More information about the cfe-dev