[cfe-dev] notes without warnings and a question to -cc1

Olaf Krzikalla Olaf.Krzikalla at tu-dresden.de
Mon Mar 28 02:11:51 PDT 2011


Am 25.03.2011 18:40, schrieb John McCall:
>> CompilerInvocation::CreateFromArgs(...);
>>
>> to get a compiler invocation.
>> But CreateFromArgs uses the cc1 option table hard-coded and thus I can't
>> pass options like "-msse2" to the compiler. This in turn forbids the
>> handling of files which includes<xmmintrin.h>  and similiar headers.
>> Is there a reason for using the cc1 option table there and is it
>> possible to change it so that it is optionally possible to use the
>> driver option table instead?
>
> No.  If you want to use the driver logic to figure out the arguments to pass to
> CompilerInvocation, you should do that.
Sorry, but I can't figure out how to do that. I can create a Compilation 
from a Driver but I have no idea how I can get from a Compilation to a 
CompilerInstance or CompilerInvocation. Which missing link was I unable 
to find?

Best regards
Olaf Krzikalla



More information about the cfe-dev mailing list