Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

LLVM ARM6 release build optimizer bug... #768

Merged
merged 1 commit into from

3 participants

@troppoli

We have bumped into an issue that apparently a lot of other people have.... some three20 users, some not. Basically LLVM+ARM6 and thumb optimizations don't mix. It would seem that the best thing to do is to turn off thumb support for the time being to avoid the trouble. In our case, text was all over the place due to
TTTextStyle's (CGRect)rectForText:(NSString)text forSize:(CGSize)size withFont:(UIFont)font returning bogus values.

See....

http://www.idevgames.com/forums/thread-9606.html

http://stackoverflow.com/questions/9009883/weird-three20-graphics-bug-in-thumb-viewer-when-running-in-release-mode

@aporat

I just found out this nasty bug happens on my a few of my published apps as well, as I heavily use TTButton + TTStyleSheets. I guess this bug was introduced since the recent move to LLVM in #742.

@diederich

Thanks of looking into this and finding the right place to put it in ;)
I have this enabled in my apps which still need to support armv6, too.

@diederich diederich merged commit 42bcda2 into from
@troppoli

I pulled to the head of dev and verified it yesterday before applying the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 2, 2012
  1. @troppoli
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 0 deletions.
  1. +3 −0  src/common/Configurations/Library.xcconfig
View
3  src/common/Configurations/Library.xcconfig
@@ -53,3 +53,6 @@ GCC_WARN_ABOUT_MISSING_NEWLINE = YES
GCC_WARN_UNUSED_FUNCTION = YES
GCC_WARN_UNUSED_LABEL = YES
+// THIS APPARENTLY FIXES HORRIBLE PROBLEMS WITH THE OPTIMIZER
+// ACCESSING BASIC PROPS IN UI
+OTHER_CFLAGS[arch=armv6] = -mno-thumb
Something went wrong with that request. Please try again.