From 1d2bd858fd7479bc672bc0e1be77f30c63f85b0c Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 8 Jan 2019 16:35:32 -0800 Subject: Made the source mapping optional (and disabled with -O2+) --- nomsu_environment.moon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nomsu_environment.moon') 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 -- cgit v1.2.3