From 8f777f328df2ee6a94d77f635d57b11124ecb8b4 Mon Sep 17 00:00:00 2001 From: nianhua <1585346868@qq.com> Date: Tue, 18 Jun 2024 15:54:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0linux=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=BC=95=E7=94=A8lua5.3=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/modulemanager.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/core/modulemanager.cpp b/src/core/modulemanager.cpp index 1a35b21..db144b4 100644 --- a/src/core/modulemanager.cpp +++ b/src/core/modulemanager.cpp @@ -116,6 +116,13 @@ void fastweb::module_manager::start() #define DLL_EXT "dll" #else #define DLL_EXT "so" +#endif +#ifndef _WIN32 + // Linux + { + m_lua_include_path += ";/usr/local/lib/lua/5.3/?.lua"; + m_lua_include_cpath += ";/usr/local/share/lua/5.3/?.lua"; + } #endif // 用户 {