1
0
mirror of https://github.com/janet-lang/janet synced 2025-12-07 17:18:07 +00:00

Add (dyn :executable).

Also remove process/args.
This commit is contained in:
Calvin Rose
2019-07-27 09:31:03 -05:00
parent d46bcd5b8f
commit a3a3e4c0dc
5 changed files with 9 additions and 7 deletions

View File

@@ -353,8 +353,7 @@
# Load entry environment and get main function.
(def entry-env (dofile source))
(def main ((entry-env 'main) :value))
# Get environments for every native module for the marshalling
# dictionary
# Create marshalling dictionary
(def mdict (invert (env-lookup root-env)))
# Build image
(def image (marshal main mdict))