Am 15.02.2021 um 22:54 schrieb Alexander Grotewohl via fpc-pascal:
There's a command line parameter.. try something like
fpc -FU~/.units.lnx yourapp.pp
Just to explain what -FUxxx does: this sets the unit output path. If you
have precompiled units (or source files) in a different location you
need to use -Fuxxx which sets the unit search path.
Of course you would have to remember to do that for EVERY compile (I
set my text editor to do it) but you could probably add it to your
fpc.cfg too.
You can add additional parameters to a custom file (just like you'd do
with the global fpc.cfg) and then add it using the @ parameter:
fpc @your.cfg yourapp.pp
Regards,
Sven
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal