(export ...) is ignored with compile-bundle-op
Compiler: SBCL.
The latest version of Next (master) uses
macros define-mode
, define-command
, etc. that define functions that are
meant to be automatically exported.
For instance (define-mode foo ...)
expends to
...
(export ',name)
(defun ,name () ...
When compiling Next with the program-op
, everything goes fine.
However, when compiling with the compile-bundle-op
, none of the (export ...)
are seen and the compilation fails.
If I add the export in the package definition, e.g.
(uiop:define-package next
(:use :common-lisp :trivia :annot.class)
(:export :FOO)
It works as well for compile-bundle-op
.
Is this expected?
Is there a way to write a macro to auto-export symbols?
Any better solution? I need compile-bundle-op
to create the Guix package.