]> git.saurik.com Git - cycript.git/blobdiff - xcode.sh
Also build OS X target and use for libcycript-any.
[cycript.git] / xcode.sh
index 45b2ea94e5fc9fa347ccbb70e703c0815a399de3..ce511a9a48e50828e569e515a09d0140e83910fb 100755 (executable)
--- a/xcode.sh
+++ b/xcode.sh
@@ -66,11 +66,6 @@ function configure() {
     cd ..
 }
 
-for arch in i386 x86_64; do
-    configure "mac-${arch}" "${mac}" "-arch ${arch} -mmacosx-version-min=10.6" \
-        CPPFLAGS="-I../readline" LDFLAGS="-L../readline"
-done
-
 function build() {
     local dir=$1
     local sdk=$2
@@ -80,6 +75,11 @@ function build() {
     configure "${dir}" "${sdk}" "${flg}" "$@" --enable-static --with-pic
 }
 
+for arch in i386 x86_64; do
+    build "mac-${arch}" "${mac}" "-arch ${arch} -mmacosx-version-min=10.6" \
+        CPPFLAGS="-I../readline" LDFLAGS="-L../readline"
+done
+
 for arch in i386 x86_64; do
     build "sim-${arch}" iphonesimulator "-arch ${arch} -mios-simulator-version-min=4.0" \
         OBJCXXFLAGS="-fobjc-abi-version=2 -fobjc-legacy-dispatch" \