summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-09-23 13:08:49 +0800
committerGitHub <[email protected]>2021-09-23 13:08:49 +0800
commitffd3403c9964f6cc6dce499de8168b8476f695c9 (patch)
tree18c081caee30280309d4489ef73c8fba748efe1f
parent535047433a2c4caed04afcb20a6575fdb6e8d938 (diff)
Update _xmake_main.lua
-rw-r--r--xmake/core/_xmake_main.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/core/_xmake_main.lua b/xmake/core/_xmake_main.lua
index 47197d7bb..cf82a5a9c 100644
--- a/xmake/core/_xmake_main.lua
+++ b/xmake/core/_xmake_main.lua
@@ -36,6 +36,12 @@ xmake._WORKING_DIR = os.curdir()
xmake._FEATURES = _FEATURES
xmake._LUAJIT = _LUAJIT
+-- In order to be compatible with updates from lower versions of engine core
+-- @see https://github.com/xmake-io/xmake/issues/1694#issuecomment-925507210
+if xmake._LUAJIT == nil then
+ xmake._LUAJIT = true
+end
+
-- load the given lua file
function _loadfile_impl(filepath, mode, opt)