make-compilation-unit-environment

Arguments: &optional compile

Returns an environment object suitable for cl:compile-file or cl:compile processing. When the
compile argument is omitted or nil, the environment includes a lexical portion for
use with augment-environment and the
*-information functions, and a global portion for use with
sys:ce-get and sys:ce-putprop, and the
environment is suitable for cl:compile-file. If
compile is specified and is non-nil, then the resultant environment contains only the
lexical component, making the environment suitable for cl:compile.