简体   繁体   中英

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

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?

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/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM