-
|
因为需要根据LUA的版本,来做一些前置判断,请问一下:在 xmake.lua 中,怎么获取当前的 LUA 版本? |
Beta Was this translation helpful? Give feedback.
Answered by
waruqi
May 12, 2022
Replies: 2 comments 4 replies
-
|
目前取不了 lua 版本,只能通过 |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
aceyin
-
|
按照我初步理解,xmake 自己内置了 LUA 解析器,自己有自己的LUA运行环境,并没有依赖操作系统环境中的LUA。 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
目前取不了 lua 版本,只能通过
xmake.luajit()判断是否为 luajit。。。如果是 luajit 就是 5.1 ,否则就是 lua 5.4