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_environment.moon | |
| parent | 9b6caad828e4feb2dca77353e7ffdab465a1faa8 (diff) | |
Fixed -O optimization flag.
Diffstat (limited to 'nomsu_environment.moon')
| -rw-r--r-- | nomsu_environment.moon | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nomsu_environment.moon b/nomsu_environment.moon index 0d80e0d..e17dcb2 100644 --- a/nomsu_environment.moon +++ b/nomsu_environment.moon @@ -150,7 +150,9 @@ nomsu_environment = Importer{ error("Attempt to run unknown thing: "..tostring(to_run)) FILE_CACHE: {} - run_file_1_in: (path, environment, optimization=1)-> + run_file_1_in: (path, environment, optimization)-> + if not optimization + optimization = environment.OPTIMIZATION if environment.FILE_CACHE[path] import_to_1_from(environment, environment.FILE_CACHE[path]) return @@ -158,7 +160,6 @@ nomsu_environment = Importer{ i = _currently_running_files\index_of(path) _currently_running_files\add path circle = _currently_running_files\from_1_to(i, -1) - print(_currently_running_files, path) error("Circular import detected:\n "..circle\joined_with("\n..imports ")) _currently_running_files\add path mod = _1_forked(environment) |
