Skip to content

Commit

Permalink
Add apple-ios target support
Browse files Browse the repository at this point in the history
  • Loading branch information
khvzak committed Aug 23, 2023
1 parent 2e76015 commit dc3c122
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dc3c122

Please sign in to comment.