Is there a way to avoid linking DCUs to a BPL?

221 Views Asked by At

We are using packages to split our code base into smaller pieces, but always deploy as a single monolitic executable.

When compiling the packages the units in a package project are linked together into .dcp and .bpl files and finally they are linked again into the executable (.exe).

This is is a bit of a time waster, I'd like Delphi to only compile the DCUs and not link them into packages.

So:

Is it possible to turn off linking for packages and only link in the final executable?

1

There are 1 best solutions below

0
Jens Mühlenhoff On BEST ANSWER

fastdcc in IDE Fix Pack from Andreas Hausladen has a switch that does exactly this:

-x--compileonly

Output intermediate files, skip linking. 1: Output only DCU and DCP. 2: Output only DCU.

https://www.idefixpack.de/blog/ide-tools/ide-fix-pack/