On 15 Nov 2002 at 18:51, Frank Heckenbach wrote:
[...]
In a slightly longer perspective, the compiler driver (`gpc') will be merged with `gcc' (the only difference probably being the automatic linking of the Pascal runtime), so any local changes we'd now make to `gpc' would not last very long, anyway.
What is the time scale for this? I have already written the code for the GPC driver to read 5 extra environment variables (to cater for "-- unit-path", "--object-path", "--unit-destination-path", "--object- destination-path", and "--executable-path"). The code is actually quite simple (I am sure it can be significantly improved), and not very long (I have a patch ready for anyone who is interested). One can continue to use the patch until the gpc and gcc drivers are merged and the "gp" utility is ready.
[...]
That said, for the special case of unit/object paths, it might be possible to read environment variables in the compiler proper (`gpc1'), since the compiler driver doesn't need them (unlike, e.g., LIBRARY_PATH). I'd have to check this in detail ...
Please let us know when you have ascertained this. It is better for this type of thing to be implemented centrally (i.e., in GPC itself) than via local changes.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~african_chief/