Quick start manual

9-14
Delphi Language Guide
Including {$DENYPACKAGEUNIT ON} in source code prevents the unit file from
being packaged. Including {$G–} or {$IMPORTEDDATA OFF} may prevent a
package from being used in the same application with other packages.
Other compiler directives may be included, if appropriate, in package source code.
Package-specific command-line compiler switches
The following package-specific switches are available for the command-line
compiler. See the online Help for details.
Using the –$G– switch may prevent a package from being used in the same
application with other packages.
Other command-line options may be used, if appropriate, when compiling packages.
Table 9.3 Package-specific command-line compiler switches
Switch Purpose
–$G– Disables creation of imported data references. Using this switch increases
memory-access efficiency, but prevents packages compiled with it from
referencing variables in other packages.
–LE path Specifies the directory where the compiled package file will be placed.
–LN path Specifies the directory where the package dcp file will be placed.
–LUpackageName
[;packageName2;...]
Specifies additional runtime packages to use in an application. Used when
compiling a project.
–Z Prevents a package from being implicitly recompiled later. Use when
compiling packages that provide low-level functionality, that change
infrequently between builds, or whose source code will not be distributed.