From b918668f18cf6b0fe823c5a03c351ad6945a24bb Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 11 Nov 2018 18:03:18 -0800 Subject: Fixed -O optimization flag. --- nomsu_compiler.moon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nomsu_compiler.moon') 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)-> -- cgit v1.2.3