[cfe-commits] r61113 - /cfe/trunk/Driver/RewriteObjC.cpp

Daniel Dunbar daniel at zuster.org
Tue Dec 16 18:26:29 PST 2008


Two things:

(1) clang uses LLVM's command line parsing for options. Thus, options
with arguments like -x can be provided as '-x c' or '-x=c' and amount
to the same thing.

(2) Compatibility with gcc here is a non-issue, this is a driver
problem. Although there are some additional features exposed by the
clang binary, from the point of view of actual compilation clang
serves as cc1. Once we have a real driver I hope to actually rip out
parts of the command line options clang (the binary) currently accepts
and change it so that clang does very little interpretation of
arguments and instead just "does what it is told".

 - Daniel

On Tue, Dec 16, 2008 at 5:09 PM, Fariborz Jahanian <fjahanian at apple.com> wrote:
>
> On Dec 16, 2008, at 5:07 PM, steve naroff wrote:
>
>>
>> On Dec 16, 2008, at 8:04 PM, Fariborz Jahanian wrote:
>>
>>>
>>> On Dec 16, 2008, at 4:20 PM, Steve Naroff wrote:
>>>
>>>> -x=objective-c++
>>>
>>> I hope you meant: -x objective-c++ (same as -ObjC++).
>>>
>>
>> Nope...the comment is correct. The clang driver syntax is currently -
>> x=objective-c++.
>>
>> Here is some output from "clang -help".
>>
>>  -x                                  - Base language to compile
>>    =c                                -   C
>>    =c++                              -   C++
>>    =objective-c                      -   Objective C
>>    =objective-c++                    -   Objective C++
>
> So, we decided not to be gcc compatible in language selection? Or the
> driver will fix all these?
> In gcc we have:
> -x c
> -x c++
> ...
>
> - Fariborz
>
>>
>>
>> snaroff
>>
>>> - Fariborz
>>>
>>>
>>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>



More information about the cfe-commits mailing list