[iPhone] Enabled thumb for armv7 arch

This commit is contained in:
Alex Zolotarev 2011-03-16 19:51:06 +00:00 committed by Alex Zolotarev
parent 50ee9da17e
commit fd55847b4b
2 changed files with 7 additions and 7 deletions

View file

@ -641,7 +641,8 @@
_DEBUG,
TARGET_OS_IPHONE,
);
GCC_THUMB_SUPPORT = NO;
"GCC_THUMB_SUPPORT[arch=armv6]" = NO;
"GCC_THUMB_SUPPORT[arch=armv7]" = YES;
GCC_VERSION = "";
HEADER_SEARCH_PATHS = (
../../3party/protobuf,
@ -697,7 +698,8 @@
_RELEASE,
TARGET_OS_IPHONE,
);
GCC_THUMB_SUPPORT = NO;
"GCC_THUMB_SUPPORT[arch=armv6]" = NO;
"GCC_THUMB_SUPPORT[arch=armv7]" = YES;
GCC_UNROLL_LOOPS = YES;
GCC_VERSION = "";
HEADER_SEARCH_PATHS = (

View file

@ -7,16 +7,14 @@
# where gcc an all tools are actually resides
IPHONE_SDK_PATH = /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk
DEVICE_ARCH = armv6
DEVICE_ARCH2 = armv7
MAKEFILE_GENERATOR = UNIX
TEMPLATE = app
CONFIG += hide_symbols warn_on dwarf2 app_bundle incremental global_init_link_order lib_version_first plugin_no_soname link_prl
QMAKE_INCREMENTAL_STYLE = sublib
QMAKE_CC = gcc-4.2 -std=c99 -arch $$DEVICE_ARCH -arch $$DEVICE_ARCH2
QMAKE_CXX = g++-4.2 -arch $$DEVICE_ARCH -arch $$DEVICE_ARCH2
QMAKE_CC = gcc-4.2 -std=c99 -arch armv6 -Xarch_armv6 -mno-thumb -arch armv7 -Xarch_armv7 -mthumb
QMAKE_CXX = g++-4.2 -arch armv6 -Xarch_armv6 -mno-thumb -arch armv7 -Xarch_armv7 -mthumb
QMAKE_RESOURCE =
@ -65,7 +63,7 @@ QMAKE_CFLAGS += --sysroot=$$IPHONE_SDK_PATH
QMAKE_CFLAGS += -isystem $$IPHONE_SDK_PATH/usr/include
QMAKE_CFLAGS += -iwithsysroot $$IPHONE_SDK_PATH
#QMAKE_CFLAGS += -iwithsysroot $$IPHONE_SDK_PATH/System/Library/Frameworks/
QMAKE_CFLAGS += -fmessage-length=0 -mno-thumb -marm
QMAKE_CFLAGS += -fmessage-length=0 -marm
QMAKE_CFLAGS += -pipe -miphoneos-version-min=3.1 -dead_strip
QMAKE_CFLAGS_DEPS += -M
QMAKE_CFLAGS_WARN_ON += -Wall -W