diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-01-08 16:35:32 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-01-08 16:35:51 -0800 |
| commit | 1d2bd858fd7479bc672bc0e1be77f30c63f85b0c (patch) | |
| tree | bc0261091bd95f59f48b3a67eaa21d5e55eb752a /nomsu_environment.moon | |
| parent | fc1655e028a93290f5d6a6e99cec56fa9dbaf0bb (diff) | |
Made the source mapping optional (and disabled with -O2+)
Diffstat (limited to 'nomsu_environment.moon')
| -rw-r--r-- | nomsu_environment.moon | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nomsu_environment.moon b/nomsu_environment.moon index a5b1169..6ae57d2 100644 --- a/nomsu_environment.moon +++ b/nomsu_environment.moon @@ -131,7 +131,7 @@ nomsu_environment = Importer{ line_numbered_lua = table.concat(lines, "\n") error("Failed to compile generated code:\n\027[1;34m#{line_numbered_lua}\027[0m\n\n#{err}", 0) source_key = tostring(source) - unless environment.SOURCE_MAP[source_key] + unless environment.SOURCE_MAP[source_key] or environment.OPTIMIZATION >= 2 map = {} file = Files.read(source.filename) if not file |
