views:

91

answers:

2

When compiling a Delphi project calling DCC32.EXE from a script, no .dcu files are generated.

Is there a command-line switch (or .cfg setting) to make the compiler create dcu's? Will the compiler then also check the .pas file and re-create the .dcu if the source has changed?

(I've seen there's a similar question for the Delphi 6 compiler, but I haven't been able to find this for newer versions of Delphi)

+2  A: 

The commandline switch to specify where dcu's should go is the -N0 (letter N, digit zero) switch. If you don't specify this however, the dcu's should still be generated, but end up in the same directory(ies) as the pas file(s) from which they were generated.

Marjan Venema
D6 doesn't tell you about -N0, but it does actually use -N0 too.
Frank Shearar
+3  A: 

-m (make) or -b (build) will tell the compiler to flush .dcu files to disk. Without either of those switches, the compiler will only compile .dcus into memory.

Allen Bauer
-B will re-build all dcu's so -M is exactly what I'm searching! Thanks
Stijn Sanders