mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
iOS/ARM64: Add build instructions.
Thanks to Vyacheslav Egorov.
This commit is contained in:
parent
3ad77346df
commit
42b9c98d42
@ -452,11 +452,18 @@ much slower than the JIT compiler. Please complain to Apple, not me.
|
|||||||
Or use Android. :-p
|
Or use Android. :-p
|
||||||
</p>
|
</p>
|
||||||
<pre class="code">
|
<pre class="code">
|
||||||
|
# iOS/ARM (32 bit)
|
||||||
ISDKP=$(xcrun --sdk iphoneos --show-sdk-path)
|
ISDKP=$(xcrun --sdk iphoneos --show-sdk-path)
|
||||||
ICC=$(xcrun --sdk iphoneos --find clang)
|
ICC=$(xcrun --sdk iphoneos --find clang)
|
||||||
ISDKF="-arch armv7 -isysroot $ISDKP"
|
ISDKF="-arch armv7 -isysroot $ISDKP"
|
||||||
make HOST_CC="clang -m32 -arch i386" CROSS="$(dirname $ICC)/" \
|
make HOST_CC="clang -m32 -arch i386" CROSS="$(dirname $ICC)/" \
|
||||||
TARGET_FLAGS="$ISDKF" TARGET_SYS=iOS
|
TARGET_FLAGS="$ISDKF" TARGET_SYS=iOS
|
||||||
|
|
||||||
|
# iOS/ARM64
|
||||||
|
ISDKP=$(xcrun --sdk iphoneos --show-sdk-path)
|
||||||
|
ICC=$(xcrun --sdk iphoneos --find clang)
|
||||||
|
ISDKF="-arch arm64 -isysroot $ISDKP"
|
||||||
|
make CROSS="$(dirname $ICC)/" TARGET_FLAGS="$ISDKF" TARGET_SYS=iOS
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<h3 id="consoles">Cross-compiling for consoles</h3>
|
<h3 id="consoles">Cross-compiling for consoles</h3>
|
||||||
|
Loading…
Reference in New Issue
Block a user