diff options
Diffstat (limited to 'stdlib/source/lux/tool/compiler/program.lux')
-rw-r--r-- | stdlib/source/lux/tool/compiler/program.lux | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/stdlib/source/lux/tool/compiler/program.lux b/stdlib/source/lux/tool/compiler/program.lux index 265277ac7..9de17b5df 100644 --- a/stdlib/source/lux/tool/compiler/program.lux +++ b/stdlib/source/lux/tool/compiler/program.lux @@ -21,7 +21,9 @@ ["." translation]] [default ["." platform (#+ Platform)] - ["." syntax]]] + ["." syntax]] + [meta + ["." archive (#+ Archive)]]] ## ["." interpreter] ]] [// @@ -77,10 +79,11 @@ platform} {(IO (Error (statement.State+ anchor expression statement))) (platform.initialize expander platform bundle)}) - _ (: (IO (Error Any)) - (platform.compile expander platform (set@ #cli.module syntax.prelude configuration) state)) - ## _ (: (IO (Error Any)) - ## (platform.compile expander platform configuration state)) + _ (:share [anchor expression statement] + {(Platform IO anchor expression statement) + platform} + {(IO (Error [Archive (statement.State+ anchor expression statement)])) + (platform.compile expander platform configuration archive.empty state)}) ## _ (cache/io.clean target ...) ] (wrap (log! "Compilation complete!"))))) |