[cfe-dev] compiling to/from std::string

Eli Friedman eli.friedman at gmail.com
Wed May 5 14:04:47 PDT 2010


On Wed, May 5, 2010 at 1:51 PM, Joshua Housh <joshua.housh at gmail.com> wrote:
> Hi,
>
> The following arguments were the result of me printing out the args in a
> call to clang ("./clang test.c"):
>
> std::vector<std::string> args = std::vector<std::string>();
> args.push_back("test2.c");
> args.push_back("-resource-dir");
> args.push_back("/home/joshua/llvm/Debug/lib/clang/1.5");
> args.push_back("-fdollars-in-identifiers");
> args.push_back("-fno-operator-names");
> args.push_back("-ftemplate-depth");
> args.push_back("99");
> args.push_back("-triple");
> args.push_back("x86_64-unknown-linux-gnu");

Ah; generating an object file directly only works on OS X at the
moment; there's still some work left to get it working on Linux.

-Eli



More information about the cfe-dev mailing list