summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/l-lua.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2019-08-09 21:12:52 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2019-08-09 21:12:52 +0200
commit76a1861b8ff7c2befbc41270833a4a0919c93c30 (patch)
tree0053915db1de56ac3da2a1415b5447bf66acd81f /tex/context/base/mkiv/l-lua.lua
parente92fac1b64f7969cadd8ae60f336c43624250d42 (diff)
downloadcontext-76a1861b8ff7c2befbc41270833a4a0919c93c30.tar.gz
2019-08-09 18:36:00
Diffstat (limited to 'tex/context/base/mkiv/l-lua.lua')
-rw-r--r--tex/context/base/mkiv/l-lua.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/tex/context/base/mkiv/l-lua.lua b/tex/context/base/mkiv/l-lua.lua
index 5570e83dc..6e9606e84 100644
--- a/tex/context/base/mkiv/l-lua.lua
+++ b/tex/context/base/mkiv/l-lua.lua
@@ -212,7 +212,7 @@ FFISUPPORTED = type(ffi) == "table" and ffi.os ~= "" and ffi.arch ~= "" and ffi.
if not FFISUPPORTED then
- -- Maybe we should check for LUATEXENGINE but that's also a bti tricky as we still
+ -- Maybe we should check for LUATEXENGINE but that's also a bit tricky as we still
-- can have a weird ffi library laying around. Checking for presence of 'jit' is
-- also not robust. So for now we hope for the best.
@@ -253,3 +253,7 @@ if LUAVERSION > 5.3 then
-- collectgarbage("collect")
-- collectgarbage("generational") -- crashes on unix
end
+
+if status and os.setenv then
+ os.setenv("engine",string.lower(status.luatex_engine or "unknown"))
+end