Use new LSL compiler by default in DotNetEngine and XEngine. Fix issues 1651, 1339.

This commit is contained in:
Mike Mazur
2008-07-27 23:53:18 +00:00
parent 50f2e88c99
commit 9e58ce60c0
2 changed files with 24 additions and 21 deletions

View File

@@ -82,7 +82,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
// private static int instanceID = new Random().Next(0, int.MaxValue); // Unique number to use on our compiled files
private static UInt64 scriptCompileCounter = 0; // And a counter
private bool m_UseCompiler = false;
private bool m_UseCompiler = true;
public IScriptEngine m_scriptEngine;
public Compiler(IScriptEngine scriptEngine)
@@ -93,9 +93,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
public bool in_startup = true;
public void ReadConfig()
{
// Turning on the compiler by default so hardcoding this option to
// true. Once it's clear we won't be going back to the old
// "compiler" this code will be removed completely.
// Mike, 2008.07.28
//m_UseCompiler = m_scriptEngine.Config.GetBoolean("UseNewCompiler", true);
// Get some config
m_UseCompiler = m_scriptEngine.Config.GetBoolean("UseNewCompiler", true);
WriteScriptSourceToDebugFile = m_scriptEngine.Config.GetBoolean("WriteScriptSourceToDebugFile", true);
CompileWithDebugInformation = m_scriptEngine.Config.GetBoolean("CompileWithDebugInformation", true);