diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-11-11 18:03:18 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-11-11 18:03:25 -0800 |
| commit | b918668f18cf6b0fe823c5a03c351ad6945a24bb (patch) | |
| tree | 791354712dd3ac8e03bac5ed773d17598cc87774 /nomsu_compiler.moon | |
| parent | 9b6caad828e4feb2dca77353e7ffdab465a1faa8 (diff) | |
Fixed -O optimization flag.
Diffstat (limited to 'nomsu_compiler.moon')
| -rw-r--r-- | nomsu_compiler.moon | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nomsu_compiler.moon b/nomsu_compiler.moon index 97cb0a7..c71ee1d 100644 --- a/nomsu_compiler.moon +++ b/nomsu_compiler.moon @@ -98,7 +98,7 @@ compile = setmetatable({ --if path.type == 'Text' and #path == 1 and type(path[1]) == 'string' -- unless import_to_1_from(compile, path[1]) -- compile_error tree, "Could not find anything to import for #{path}" - return LuaCode("run_file_1_in(#{compile(path)}, _ENV)") + return LuaCode("run_file_1_in(#{compile(path)}, _ENV, OPTIMIZATION)") ["tests"]: (compile)-> LuaCode("TESTS") ["test"]: (compile, body)-> |
