From dc3c122062a6f8f40a637e7ca921788d66b78456 Mon Sep 17 00:00:00 2001 From: Alex Orlenko Date: Wed, 23 Aug 2023 01:00:56 +0100 Subject: [PATCH] Add `apple-ios` target support --- src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index d589ac0..6aab3d8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -94,6 +94,12 @@ impl Build { _ => config.define("LUA_USE_MACOSX", None), }; } + _ if target.contains("apple-ios") => { + match version { + Lua54 => config.define("LUA_USE_IOS", None), + _ => config.define("LUA_USE_POSIX", None), + }; + } _ if target.contains("windows") => { // Defined in Lua >= 5.3 config.define("LUA_USE_WINDOWS", None);