[cfe-dev] CompilerInvocation::createFromArgs Problem

madil90 madil90 at gmail.com
Thu Oct 18 09:24:04 PDT 2012


Hi,
   In order to include C++ headers without platform-specific code, I copied
the code from "createInvocationFromCommandLine" , renamed it to
"CreateCXXInvocation" and added the following line:

TheDriver.CCCIsCXX = true;

   after the driver object is created. Now the CompilerInvocation object
created by "createFromArgs" contains all the args for C++ paths. The problem
is that all these arguments are placed AFTER the target file (test.cpp).
Therefore, they don't work. If the target file is put at the end, the
command would work fine. Why does "createFromArgs" put CXX paths after the
target file? How can this be remedied?

Regards,
Adil



--
View this message in context: http://clang-developers.42468.n3.nabble.com/CompilerInvocation-createFromArgs-Problem-tp4027547.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list