Skip to content

Commit ba7f81c

Browse files
authored
修复lua5.4.6,构建iOS平台时出现报错('system' is unavailable: not available on iOS) (#1133)
1 parent dc39f17 commit ba7f81c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ source_group_by_dir(${CMAKE_CURRENT_SOURCE_DIR} XLUA_CORE)
145145

146146
if (APPLE)
147147
if (IOS)
148+
ADD_DEFINITIONS(-DLUA_USE_IOS) # Despite claiming to be ISO C, iOS does not implement 'system'.(iOS11)
148149
set(CMAKE_OSX_ARCHITECTURES "$(ARCHS_STANDARD)")
149150
add_library(xlua STATIC
150151
${LUA_CORE}

0 commit comments

Comments
 (0)