aboutsummaryrefslogtreecommitdiff
path: root/nomsu.moon
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-06-22 02:40:11 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-06-22 02:41:08 -0700
commit126678f737497d36126665b4661c17588c6d58d8 (patch)
tree0a2b877920ef23800e89b1906d061d314a8d3ca4 /nomsu.moon
parent86a3219e7fc3244331595819f742b365172f96ad (diff)
Adding fancy makefile that compiles all the moonscript files and
precompiles all the nomsu files and can build a nice executable file and install it wherever you like.
Diffstat (limited to 'nomsu.moon')
-rwxr-xr-xnomsu.moon3
1 files changed, 2 insertions, 1 deletions
diff --git a/nomsu.moon b/nomsu.moon
index 86097a7..780e8bc 100755
--- a/nomsu.moon
+++ b/nomsu.moon
@@ -135,7 +135,6 @@ run = ->
elseif args.print_file then io.open(args.print_file, 'w')
else io.stdout
- nomsu.skip_precompiled = not args.optimized
if print_file == nil
nomsu.print = ->
elseif print_file != io.stdout
@@ -155,6 +154,8 @@ run = ->
input_files[#input_files+1] = f
to_run[f] = true
+ nomsu.skip_precompiled = to_run
+
if args.compile or args.verbose
nomsu.on_compile = (code, from_file)->
return unless to_run[from_file]