mescc: Support running on Mes with modules.

* scripts/mescc.scm.in: Check if the module system is booted and if
so, use it to load MesCC code.
This commit is contained in:
Timothy Sample 2022-04-26 11:00:15 -06:00
parent aced75e21a
commit 4f48265ff4
1 changed files with 3 additions and 1 deletions

View File

@ -63,7 +63,9 @@
(cond-expand
(mes
(mes-use-module (mescc))
(if (current-module)
(use-modules (mescc))
(mes-use-module (mescc)))
(mescc:main (command-line)))
(guile
(use-modules (mescc))))