]> git.saurik.com Git - uikittools.git/blobdiff - makefile
Apple's newer LLVM backends generate garbage code.
[uikittools.git] / makefile
index 386c82bf27af6a3e7f6e8aae471fea57e2a5a570..46abed4d15a62184ce2a08cceca8e5fa23020c96 100644 (file)
--- a/makefile
+++ b/makefile
@@ -17,18 +17,20 @@ gssc := -lobjc
 iomfsetgamma := -I. $(private) -framework IOKit -framework IOMobileFramebuffer
 sbdidlaunch := $(private) -framework SpringBoardServices
 uicache := -framework UIKit # XXX: UIKit -> MobileCoreServices
-uiduid := --framework UIKit
-uiopen := --framework UIKit
+uiduid := -framework UIKit
+uiopen := -framework UIKit
 uishoot := -framework UIKit
 
 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) $@