Skip to content

Commit

Permalink
修复lua5.4.6,构建iOS平台时出现报错('system' is unavailable: not available on iOS) (
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaineLe authored Apr 19, 2024
1 parent dc39f17 commit ba7f81c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ source_group_by_dir(${CMAKE_CURRENT_SOURCE_DIR} XLUA_CORE)

if (APPLE)
if (IOS)
ADD_DEFINITIONS(-DLUA_USE_IOS) # Despite claiming to be ISO C, iOS does not implement 'system'.(iOS11)
set(CMAKE_OSX_ARCHITECTURES "$(ARCHS_STANDARD)")
add_library(xlua STATIC
${LUA_CORE}
Expand Down

0 comments on commit ba7f81c

Please sign in to comment.