19 Nov
2009
19 Nov
'09
8:53 a.m.
But I have no idea if there is some simple way to hardcode the target architecture into LuaTeX itself.
You could check the first few bytes of the LuaTeX binary itself, it has to tell you something about the architecture it was compiled for. That's what file uses in most cases anyway (the "magic numbers"). By compiling a stupid C program on both 10.5 and 10.6, I see that the first 16 bytes of the executable are, respectively: 10.5: cefa edfe 0700 0000 0300 0000 0200 0000 10.6: cffa edfe 0700 0001 0300 0080 0200 0000 Arthur