[cfe-dev] Windows .exe from clang + COFF w/o gcc - success with issues

Sebastian Redl sebastian.redl at getdesigned.at
Tue Aug 17 14:54:30 PDT 2010


On Aug 17, 2010, at 2:29 PM, Michael Spencer wrote:

> On Tue, Aug 17, 2010 at 3:06 PM, Francois Pichet <pichet2000 at gmail.com> wrote:
>> Anybody think it would be useful to put that new cl2lang driver into
>> the mainline repository?
>> It is just an idea for now.. I haven't started working on it.
> 

I definitely think that having a cl.exe-compatible driver, similar to clang being a gcc-compatible driver, would be useful.

> Why not just add the cl.exe switches to clang? Try parsing anything
> beginning with / as an option, and if that fails treat it like a path
> to a file.

Because that could create option conflicts - cl.exe accepts unix-style options as well, i.e. you can pass options as -option to cl.exe. Then what do you do if you have a gcc and a cl option that have the same spelling, but mean something subtly different?

Sebastian



More information about the cfe-dev mailing list