[LLVMdev] Forwarded to llvm list ...

Chris Lattner sabre at nondot.org
Thu Dec 8 08:22:23 PST 2005

On Thu, 8 Dec 2005, Mark ONeill wrote:
> If the application to be invoked is called <app> how hard would it be to
> change that line in the shell script to:
> ..
> exec -a <app> $lli
> ..
> e.g. If I do llvm-gcc -o <app> <app>.c ????

That would be very easy.  Just modify EmitShellScript in 
tools/gccld/gccld.cpp.  You might also want to pass "-fake-argv0=<app>" to 
lli, which will cause the app's argv[0] to be set to the appropriate 
string (if the app itself looks at its argv[0]).



More information about the llvm-dev mailing list