lua-users home
lua-l archive

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

Thanks, Mike!

Yup ffi.os set to osx is fine for now. My question was for the iPhoneSimulator - it's x86/ios, and there is no easy way to distinguish it from x86/osx (or maybe there is, I just have to find some creative way).

Or maybe I can reuse x86/osx for the iPhoneSimulator - I have to check that one too. It's nothing that stops me from doing cool things with it :)

On 6/21/2011 3:12 AM, Mike Pall wrote:
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.