[cfe-dev] clang does not support extern for OpenCL
Jordan Rose
jordan_rose at apple.com
Mon Apr 15 10:56:20 PDT 2013
On Apr 15, 2013, at 10:53 , Tanya Lattner <lattner at apple.com> wrote:
>
> On Apr 15, 2013, at 10:44 AM, Jordan Rose <jordan_rose at apple.com> wrote:
>
>> I'm not familiar with the OpenCL part of the compiler, but I'm pretty sure you're not supposed to invoke -cc1 mode directly, just like the C compiler. The right way to do this is with the usual -std option:
>>
>> clang -std=cl1.2 tmp.cl
>>
>> This ensures that all the other driver-specified options get handled appropriately.
>
> I agree that you shouldn't use -cc1, but -cl-std= should be a driver level option. If not, then it should be fixed.
It seems it isn't, but why not -std? We already use this to refer to both the C and C++ standards.
Jordan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130415/78b47bdc/attachment.html>
More information about the cfe-dev
mailing list