Sven Barth wrote:
Am 29.02.2012 00:31, schrieb Tomas Hajny:
To let Mark (and Sven) know - I tried to add support for this to the
compiler but I couldn't make it to work for OPT. The approach is OK
in general (apart from the limitation that the compiler may also be
compiled without Makefiles and potential use of whatever options
wouldn't be visible in that case, but that scenario is probably not
important). However, our Makefiles process these variables in very
complex way and the result is that OPT is always empty during the
compiler compilation (probably due to line 360 in compiler/Makefile).
I thought that LOCALOPT might be used instead (see line 355) but that
didn't work either. See the attachment (it's the stage when I wanted
to try printing LOCALOPT too). Even if I use the original sample
program from Sven and rename it to pp.pas and replace the compiler
source file with it (and fix the warnings which are treated as errors
due to -Sew added by the Makefile ;-) ), I only get CROSSOPT printed
and OPT showed as empty.
So I ended up by only adding the note to the help page regarding -an
dependency on -dEXTDEBUG...
Well... thanks for trying anyways ;)
Definitely, and thanks for tweaking the help text :-)
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel