Commit 688220d3 authored by Jamie A. Jennings's avatar Jamie A. Jennings

Each engine now has its own copy of the default compiler

parent dcbe3f0b
......@@ -612,6 +612,12 @@ local function set_encoder_parm(self, parm_name, parm_value, set_by)
return true
end
local function shallow_copy(tbl)
local new = {}
for k,v in pairs(tbl) do new[k] = v; end
return new
end
----------------------------------------------------------------------------------------
-- Engine and rplx structures
......@@ -621,7 +627,7 @@ local function create_engine(name, compiler, searchpath, colorstring)
local new_package_table = environment.new_package_table()
e = engine.factory {
name=function() return name; end,
compiler=compiler,
compiler=shallow_copy(compiler),
libpath=common.new_attribute("ROSIE_LIBPATH",
searchpath,
"default",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment