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.lua | |
| parent | 9b6caad828e4feb2dca77353e7ffdab465a1faa8 (diff) | |
Fixed -O optimization flag.
Diffstat (limited to 'nomsu.lua')
| -rw-r--r-- | nomsu.lua | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -136,9 +136,9 @@ if not args or args.help then os.exit(EXIT_FAILURE) end nomsu_environment.command_line_args = List(args.nomsu_args) -nomsu_environment.optimization = args.optimization or 1 +nomsu_environment.OPTIMIZATION = tonumber(args.optimization or 1) if args.version then - nomsu_environment.run_file_1_in('core', nomsu_environment) + nomsu_environment.run_file_1_in('core', nomsu_environment, nomsu_environment.OPTIMIZATION) nomsu_environment.run_1_in([[say (Nomsu version)]], nomsu_environment) os.exit(EXIT_SUCCESS) end @@ -167,7 +167,7 @@ run = function() end end if not (args.no_core) then - nomsu_environment.run_file_1_in('core', nomsu_environment) + nomsu_environment.run_file_1_in('core', nomsu_environment, nomsu_environment.OPTIMIZATION) end for _index_0 = 1, #file_queue do local f = file_queue[_index_0] @@ -239,7 +239,7 @@ run = function() end end if not (args.primary_file or args.exec_strings) then - return nomsu_environment.run_file_1_in("tools/repl.nom", nomsu_environment) + return nomsu_environment.run_file_1_in("tools/repl.nom", nomsu_environment, nomsu_environment.OPTIMIZATION) end end local debugger |
