Skip to content

Commit

Permalink
fix ios lua build LUA_USE_IOS 5
Browse files Browse the repository at this point in the history
  • Loading branch information
jaromil committed Sep 24, 2024
1 parent 28ac6cc commit 1886691
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion build/apple-ios.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ cc := $(shell xcrun --sdk iphoneos -f gcc 2>/dev/null)
ar := $(shell xcrun --sdk iphoneos -f ar 2>/dev/null)
ld := $(shell xcrun --sdk iphoneos -f ld 2>/dev/null)
ranlib := $(shell xcrun --sdk iphoneos -f ranlib 2>/dev/null)
cflags += -O2 -fPIC ${cflags_protection} -D'ARCH="OSX"' -DNO_SYSTEM -DARCH_OSX
cflags += -O2 -fPIC ${cflags_protection} -D'ARCH="OSX"' -DNO_SYSTEM -DARCH_OS
lua_cflags += -DLUA_USE_IOS
ldflags := -lm
platform := ios

Expand Down
2 changes: 1 addition & 1 deletion build/init.mk
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ platform := posix
# ------------
# lua settings
lua_cc ?= ${cc}
lua_cflags = -DLUA_COMPAT_5_3 -DLUA_COMPAT_MODULE -DLUA_COMPAT_BITLIB -I${pwd}/lib/milagro-crypto-c/build/include -I${pwd}/src -I${pwd}/lib/milagro-crypto-c/build/include -I ${pwd}/lib/mimalloc/include
lua_cflags := -DLUA_COMPAT_5_3 -DLUA_COMPAT_MODULE -DLUA_COMPAT_BITLIB -I${pwd}/lib/milagro-crypto-c/build/include -I${pwd}/src -I${pwd}/lib/milagro-crypto-c/build/include -I ${pwd}/lib/mimalloc/include

# ----------------
# milagro settings
Expand Down

0 comments on commit 1886691

Please sign in to comment.