Skip to content

Commit 1393b2f

Browse files
author
Mike Pall
committed
Update build instructions.
1 parent f416cf6 commit 1393b2f

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

doc/install.html

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -112,23 +112,23 @@ <h1>Installation</h1>
112112
</tr>
113113
<tr class="odd separate">
114114
<td class="compatcpu">x86 (32 bit)</td>
115-
<td class="compatos">GCC 4.x<br>GCC 3.4</td>
116-
<td class="compatos">GCC 4.x<br>GCC 3.4</td>
117-
<td class="compatos">GCC 4.x<br>GCC 3.4</td>
115+
<td class="compatos">GCC 4.x+<br>GCC 3.4</td>
116+
<td class="compatos">GCC 4.x+<br>GCC 3.4</td>
117+
<td class="compatos">XCode 5.0+<br>Clang</td>
118118
<td class="compatos">MSVC, MSVC/EE<br>WinSDK<br>MinGW, Cygwin</td>
119119
</tr>
120120
<tr class="even">
121121
<td class="compatcpu">x64 (64 bit)</td>
122-
<td class="compatos">GCC 4.x</td>
122+
<td class="compatos">GCC 4.x+</td>
123123
<td class="compatos">ORBIS (<a href="#ps4">PS4</a>)</td>
124-
<td class="compatos">GCC 4.x</td>
124+
<td class="compatos">XCode 5.0+<br>Clang</td>
125125
<td class="compatos">MSVC + SDK v7.0<br>WinSDK v7.0</td>
126126
</tr>
127127
<tr class="odd">
128128
<td class="compatcpu"><a href="#cross2">ARMv5+<br>ARM9E+</a></td>
129129
<td class="compatos">GCC 4.2+</td>
130130
<td class="compatos">GCC 4.2+<br>PSP2 (<a href="#psvita">PS VITA</a>)</td>
131-
<td class="compatos">GCC 4.2+</td>
131+
<td class="compatos">XCode 5.0+<br>Clang</td>
132132
<td class="compatos compatno">&nbsp;</td>
133133
</tr>
134134
<tr class="even">
@@ -439,8 +439,7 @@ <h2 id="cross">Cross-compiling LuaJIT</h2>
439439
make HOST_CC="gcc -m32" CROSS=$NDKP TARGET_FLAGS="$NDKF"
440440
</pre>
441441
<p>
442-
You can cross-compile for <b id="ios">iOS 3.0+</b> (iPhone/iPad) using the <a href="http://developer.apple.com/devcenter/ios/index.action"><span class="ext">&raquo;</span>&nbsp;iOS SDK</a>.
443-
The environment variables need to match the iOS SDK version:
442+
You can cross-compile for <b id="ios">iOS 3.0+</b> (iPhone/iPad) using the <a href="http://developer.apple.com/devcenter/ios/index.action"><span class="ext">&raquo;</span>&nbsp;iOS SDK</a>:
444443
</p>
445444
<p style="font-size: 8pt;">
446445
Note: <b>the JIT compiler is disabled for iOS</b>, because regular iOS Apps
@@ -450,13 +449,11 @@ <h2 id="cross">Cross-compiling LuaJIT</h2>
450449
Or use Android. :-p
451450
</p>
452451
<pre class="code">
453-
IXCODE=`xcode-select -print-path`
454-
ISDK=$IXCODE/Platforms/iPhoneOS.platform/Developer
455-
ISDKVER=iPhoneOS6.0.sdk
456-
ISDKP=$ISDK/usr/bin/
457-
ISDKF="-arch armv7 -isysroot $ISDK/SDKs/$ISDKVER"
458-
make HOST_CC="gcc -m32 -arch i386" CROSS=$ISDKP TARGET_FLAGS="$ISDKF" \
459-
TARGET_SYS=iOS
452+
ISDKP=$(xcrun --sdk iphoneos --show-sdk-path)
453+
ICC=$(xcrun --sdk iphoneos --find clang)
454+
ISDKF="-arch armv7 -isysroot $ISDKP"
455+
make HOST_CC="clang -m32 -arch i386" CROSS="$(dirname $ICC)/" \
456+
TARGET_FLAGS="$ISDKF" TARGET_SYS=iOS
460457
</pre>
461458

462459
<h3 id="consoles">Cross-compiling for consoles</h3>

0 commit comments

Comments
 (0)