At 18:57 +0200 10/9/05, Frank Heckenbach wrote:
It's not without precedent, but IMHO too confusing in this case. And more confusion is just what we need WRT gcc/gpc/gp options. ;-)
I can't argue with that ;-)
For gp you'll also need to be careful that you can do:
gp subunit.p gp --compile-and-link mainunit.p
and not have gp decide that the options have changed and so it needs to recompile subunit.p.
gp seems to recompile subunit.p in this situation anyway, independent of the --compile-and-link switch. I tried it with an unpatched gp-0.60. Can you confirm that this happens when you test it yourself ?
gp has a mechanism to decide which options are relavant for recompiling or only relinking (see RecompileRelevant). Adriaan's patch doesn't make the option recompile-relevant, so it *should* work. But of course, there may be bugs in gp (outside of the patch). I haven't tested this situation very much, since I usually only compile complete programs with gp.
I use gp on individual files to implement command-K, compile, which just compiles the unit I'm working on (and anything it depends on) and then displays any errors in an error browser window. It works very nicely. I'm glad Adriaan noticed the little glitch, as that explains a few times I wondered why it was compiling something I thought should be up to date. I'll try to track down the glitch on Monday if no one else has found it. Peter.