Hi.
I’ve built few static libraries for the tools and use them in my demo app.
When i try to use clang driver via running cc1_main i’m getting an error:
: CommandLine Error: Argument ‘load’ defined more than once!
I’ve tried to comment cl::opt … LoadOpt(“load” … and recompile everything (LLVM, my static libs than use LLVM and the whole app) but it did not help.
I’ve also found smth about “load” argument in Options.inc:
OPTION(prefix_1, “load”, load, Separate, INVALID, INVALID, CC1Option | NoDriverOption, 0,
“Load the named plugin (dynamic shared object)”, “”)
What does it mean?
How can i fix it? LLVM is somewhere between 3.3 and 3.4, release build with RTTI on.
Regards, Anton.