[cfe-dev] notes without warnings and a question to -cc1
Argyrios Kyrtzidis
kyrtzidis at apple.com
Fri Mar 25 12:16:28 PDT 2011
On Mar 25, 2011, at 9:25 AM, Olaf Krzikalla wrote:
>
> The second question is related to the available options in normal and
> -cc1 mode. Actually I call
>
> 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?
If you look into ASTUnit::LoadFromCommandLine you can find code to get a CompilerInvocation out of driver options.
This code should be factored out into its own function like a static driver::Compilation::createInvocationFromArgs.
>
>
> Thanks in advance and best regards
> Olaf Krzikalla
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list