Peter N Lewis wrote:
At 11:27 PM +0200 15/7/03, Adriaan van Os wrote:
Now, if the user e.g. checks the "short-circuit" checkbox and unchecks the "extended-syntax" checkbox, the IDE plug-in could choose (1) to pass no command line arguments to GPC for these options, because both are set to their default (2) to pass command line arguments for both options, whatever their default.
The disadvantage of (1) is that it breaks if the default changes or if the documentation is wrong, of (2) that it cumulates into a very long list of arguments. Any advice on what is the lesser evil ?
You could place them in a prefix file, but then that might clash with a user prefix file - does GPC allow two prefix files?
I'm not sure exactly what you mean by "prefix file". If you mean include files -- there can be any number of them included from anywhere.
But it's no solution here since not all options can be put into the source (e.g., optimization options since many parts of the compiler assume they do not change during compilation).
Frank