diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2021-12-19 14:00:53 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-19 14:00:53 -0700 |
commit | 67bb01ae27db3cbba9e2e908c4e6612040f650aa (patch) | |
tree | 38dda5d90f5b52909243c6974242deeaf9906da2 | |
parent | d6b939a13f0eb0660b1d59ed456d6f379b7c1b66 (diff) | |
download | rneovim-67bb01ae27db3cbba9e2e908c4e6612040f650aa.tar.gz rneovim-67bb01ae27db3cbba9e2e908c4e6612040f650aa.tar.bz2 rneovim-67bb01ae27db3cbba9e2e908c4e6612040f650aa.zip |
chore(build): add option to disable Lua bytecode compilation (#16722)
Include a build option to explicitly disable Lua bytecode compilation.
This is needed in some situations where the existing checks are not
sufficient (e.g. cross compilation).
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ca2385d8f..9f1829cf55 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -543,7 +543,9 @@ endif() message(STATUS "Using Lua interpreter: ${LUA_PRG}") -if(NOT WIN32) +option(COMPILE_LUA "Pre-compile Lua sources into bytecode (for sources that are included in the binary)" ON) + +if(COMPILE_LUA AND NOT WIN32) if(PREFER_LUA) foreach(CURRENT_LUAC_PRG luac5.1 luac) find_program(_CHECK_LUAC_PRG ${CURRENT_LUAC_PRG}) |