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.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nomsu_environment.lua') diff --git a/nomsu_environment.lua b/nomsu_environment.lua index 51100fc..13225c0 100644 --- a/nomsu_environment.lua +++ b/nomsu_environment.lua @@ -255,7 +255,7 @@ local nomsu_environment = Importer({ error("Failed to compile generated code:\n\027[1;34m" .. tostring(line_numbered_lua) .. "\027[0m\n\n" .. tostring(err), 0) end local source_key = tostring(source) - if not (environment.SOURCE_MAP[source_key]) then + if not (environment.SOURCE_MAP[source_key] or environment.OPTIMIZATION >= 2) then local map = { } local file = Files.read(source.filename) if not file then -- cgit v1.2.3