summaryrefslogtreecommitdiff
path: root/indra/newview/llcompilequeue.cpp
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2026-08-28 14:21:52 -0700
committerGitHub <noreply@github.com>2026-08-28 14:21:52 -0700
commit5ddd940bf4bd75659a86e8d0eb205a766be5d53e (patch)
tree862ca9ad6c1ed12e92967826a60bcb39f13db523 /indra/newview/llcompilequeue.cpp
parente3320f649d2e25aac6df491614b42c94645679c7 (diff)
parent608d7193ab965dbf05466dd3a327d6ead356306d (diff)
Merge pull request #6214 from secondlife/rider/lua_beta_bugfixA
Rider/lua beta bugfix a
Diffstat (limited to 'indra/newview/llcompilequeue.cpp')
-rw-r--r--indra/newview/llcompilequeue.cpp19
1 files changed, 18 insertions, 1 deletions
diff --git a/indra/newview/llcompilequeue.cpp b/indra/newview/llcompilequeue.cpp
index ba19135fce..98b9255f66 100644
--- a/indra/newview/llcompilequeue.cpp
+++ b/indra/newview/llcompilequeue.cpp
@@ -356,7 +356,8 @@ bool LLFloaterCompileQueue::processScript(LLHandle<LLFloaterCompileQueue> hfloat
LLCheckedHandle<LLFloaterCompileQueue> floater(hfloater);
// Dereferencing floater may fail. If they do they throw LLExeceptionStaleHandle.
// which is caught in objectScriptProcessingQueueCoro
- std::string compile_target = floater->mCompileTarget;
+ const std::string requested_target = floater->mCompileTarget;
+ std::string compile_target = requested_target;
// Initial test to see if we can (or should) attempt to compile the script.
LLInventoryItem *item = dynamic_cast<LLInventoryItem *>(inventory);
@@ -367,6 +368,22 @@ bool LLFloaterCompileQueue::processScript(LLHandle<LLFloaterCompileQueue> hfloat
return true;
}
+ if (requested_target == "auto-luau")
+ {
+ compile_target =
+ item->getInventorySubType() == SST_LUA ? "luau" : "lsl-luau";
+ }
+ else if (requested_target == "auto")
+ {
+ compile_target = item->getRuntime();
+ if (compile_target.empty())
+ {
+ floater->addStringMessage(
+ "Skipping: " + item->getName() + " (no registered VM)");
+ return true;
+ }
+ }
+
if (!item->getPermissions().allowModifyBy(gAgent.getID(), gAgent.getGroupID()) ||
!item->getPermissions().allowCopyBy(gAgent.getID(), gAgent.getGroupID()))
{