Package-Specific Compiler Directives The following table lists package-specific compiler directives that can be inserted into source code.
Package-specific compiler directives Directive Purpose {$IMPLICITBUILD OFF}
Prevents a package from being implicitly recompiled later. Use in .dpk files when
compiling packages that provide low-level functionality, that change infrequently
between builds, or whose source code will not be distributed.
{$G-}
or
{$IMPORTEDDATA OFF}
Disables creation of imported data references. This directive increases memory-access
efficiency, but prevents the unit where it occurs from referencing variables in other
packages.
{$WEAKPACKAGEUNIT ON}
Packages unit weakly.
{$DENYPACKAGEUNIT ON}
Prevents unit from being placed in a package.
188
{$DESIGNONLY ON}
Compiles the package for installation in the IDE. (Put in .dpk file.)
{$RUNONLY ON}
Compiles the package as runtime only. (Put in .dpk file.)
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.