This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Specifying command line arguments in a file?


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]