Skip to content

COMPILE-APPLICATION and macro exposure #443

@mmontone

Description

@mmontone

I'm working on an application that uses JSCL, and I'm using COMPILE-APPLICATION after JSCL:BOOTSTRAP, to compile it.
It compiles and works fine, but there's a problem, macros are not exposed to the runtime, and cannot be accessed from the REPL.
I think the environment needs to be dumped for that, as I understand from this comment here:

;;; BOOTSTRAP MAGIC: We record the macro definitions as lists during

We record the macro definitions as lists during the bootstrap. Once everything is compiled, we want to dump the whole global environment to the output file to reproduce it in the run-time.

I tried calling DUMP-GLOBAL-ENVIRONMENT after COMPILE-APPLICATION, but it fails. Am I right about this? Do you have any idea how I can fix this and continue compiling with this approach?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions