Specifying command line arguments in a file?
Leo Mauro
lmauro@usb.ve
Fri Apr 27 12:42:00 GMT 2001
On Friday 27 April 2001 13:30, Robert Schweikert wrote:
> Matt Hiller wrote:
> > Why don't you just use a Makefile?
>
> I can't the arguments being used are dynamic and are not known
> ahead of time. In addition using a makefile would be completely
> different from what is done on other platforms and would required a
> lot of extra code to handle this special case. It would be much
> better if gcc would accept a command file.
So compute your flags and put them in a file (one per line, all in
one line, or combinations thereof -- it doesn't matter) and then run
gcc thusly
gcc ARGS `cat YOUR-FILE-NAME` MORE-ARGS
The shell is your friend. Read about command expansion.
More information about the Gcc
mailing list