lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Dimiter malkia Stanev wrote:
> 	Basically I can't make an universal library (static, dynamic) and
> executable that contains both 32-bit Mac OS X, and 32-bit
> iPhoneSimulator version. The right solution would be to put them in
> two different universal libs, exes, etc. But the problem is that
> LuaJIT treats both iOS and OSX as OSX (The Makefiles respect iOS,
> but not luajit itself (ffi.arch=osx for iOS)).

Well, what does one have to do with the other?

First, you mean ffi.os. Essentially iOS _is_ OSX at the kernel
level. It just has different frameworks on top. Second, you can
distinguish it further with e.g. ffi.arch (arm vs. x86 vs. x64).
It's not helpful to give every variation of an OS a different ID.