[lldb/lua] Force Lua version to be 5.3

Due to CMake cache, find_package in FindLuaAndSwig.cmake
will be ignored. This commit adds EXACT and REQUIRED flags
to it and removes find_package in Lua ScriptInterpreter.

Signed-off-by: Siger Yang <sigeryeung@gmail.com>

Reviewed By: tammela, JDevlieghere

Differential Revision: https://reviews.llvm.org/D108515
This commit is contained in:
Siger Yang 2021-10-12 21:02:21 +08:00
parent b24c91fffc
commit 6de63b3ba5
2 changed files with 1 additions and 3 deletions

View File

@ -9,7 +9,7 @@ if(LUA_LIBRARIES AND LUA_INCLUDE_DIR AND SWIG_EXECUTABLE)
else()
find_package(SWIG 3.0)
if (SWIG_FOUND)
find_package(Lua 5.3)
find_package(Lua 5.3 EXACT)
if(LUA_FOUND AND SWIG_FOUND)
mark_as_advanced(
LUA_LIBRARIES

View File

@ -1,5 +1,3 @@
find_package(Lua REQUIRED)
add_lldb_library(lldbPluginScriptInterpreterLua PLUGIN
Lua.cpp
ScriptInterpreterLua.cpp