]> git.saurik.com Git - uikittools.git/commitdiff
Apple's newer LLVM backends generate garbage code.
authorJay Freeman (saurik) <saurik@saurik.com>
Sat, 27 Jun 2015 03:57:02 +0000 (20:57 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Sat, 27 Jun 2015 03:57:02 +0000 (20:57 -0700)
makefile
xcode.sh [new file with mode: 0755]

index 77f014c42037405408043941f888019527ee8134..46abed4d15a62184ce2a08cceca8e5fa23020c96 100644 (file)
--- a/makefile
+++ b/makefile
@@ -25,10 +25,12 @@ uicache: csstore.cpp
 extrainst_: csstore.cpp
 
 %: %.mm
+       sudo xcode-select --switch /Applications/Xcode-4.6.3.app
        cycc -i2.0 -o$@ -- $^ $(flags) $($@)
        ldid -S$(wildcard $@.xml) $@
 
 %: %.c
+       sudo xcode-select --switch /Applications/Xcode-4.6.3.app
        cycc -i2.0 -o$@ -- -x c $^ $(flags) $($@)
        ldid -S$(wildcard $@.xml) $@
 
diff --git a/xcode.sh b/xcode.sh
new file mode 100755 (executable)
index 0000000..cb30149
--- /dev/null
+++ b/xcode.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+exec xcode-select --switch /Applications/Xcode-4.6.3.app