diff options
author | Shadman <13149513+shadmansaleh@users.noreply.github.com> | 2022-01-04 01:44:30 +0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-03 12:44:30 -0700 |
commit | e40210391102bd82adb820959f57675a9d89346d (patch) | |
tree | 6e1ce4dad1c856578e0e686b0a505bc7e7abdeaa | |
parent | e6c1545b199bec39058bd277ea7062bf887409ec (diff) | |
download | rneovim-e40210391102bd82adb820959f57675a9d89346d.tar.gz rneovim-e40210391102bd82adb820959f57675a9d89346d.tar.bz2 rneovim-e40210391102bd82adb820959f57675a9d89346d.zip |
chore(build): compile lua only on release builds (#16859)
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f1829cf55..0c43c5c494 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -543,7 +543,11 @@ endif() message(STATUS "Using Lua interpreter: ${LUA_PRG}") -option(COMPILE_LUA "Pre-compile Lua sources into bytecode (for sources that are included in the binary)" ON) +if(DEBUG) + option(COMPILE_LUA "Pre-compile Lua sources into bytecode (for sources that are included in the binary)" OFF) +else() + option(COMPILE_LUA "Pre-compile Lua sources into bytecode (for sources that are included in the binary)" ON) +endif() if(COMPILE_LUA AND NOT WIN32) if(PREFER_LUA) |