Skip to content
This repository was archived by the owner on Jan 26, 2024. It is now read-only.

Commit 6de63b3

Browse files
committed
[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 <[email protected]> Reviewed By: tammela, JDevlieghere Differential Revision: https://reviews.llvm.org/D108515
1 parent b24c91f commit 6de63b3

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

lldb/cmake/modules/FindLuaAndSwig.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if(LUA_LIBRARIES AND LUA_INCLUDE_DIR AND SWIG_EXECUTABLE)
99
else()
1010
find_package(SWIG 3.0)
1111
if (SWIG_FOUND)
12-
find_package(Lua 5.3)
12+
find_package(Lua 5.3 EXACT)
1313
if(LUA_FOUND AND SWIG_FOUND)
1414
mark_as_advanced(
1515
LUA_LIBRARIES

lldb/source/Plugins/ScriptInterpreter/Lua/CMakeLists.txt

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
find_package(Lua REQUIRED)
2-
31
add_lldb_library(lldbPluginScriptInterpreterLua PLUGIN
42
Lua.cpp
53
ScriptInterpreterLua.cpp

0 commit comments

Comments
 (0)