[iPhone Release] Some perfomance optimizations

This commit is contained in:
Alex Zolotarev 2011-02-13 01:23:56 +01:00 committed by Alex Zolotarev
parent 9fd94535bf
commit bf615f0e7c
2 changed files with 9 additions and 5 deletions

View file

@ -656,12 +656,16 @@
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
GCC_C_LANGUAGE_STANDARD = c99;
GCC_DYNAMIC_NO_PIC = YES;
GCC_OPTIMIZATION_LEVEL = 2;
GCC_ENABLE_PASCAL_STRINGS = NO;
GCC_FAST_MATH = YES;
GCC_OPTIMIZATION_LEVEL = 3;
GCC_PREPROCESSOR_DEFINITIONS = (
RELEASE,
_RELEASE,
TARGET_OS_IPHONE,
);
GCC_THUMB_SUPPORT = NO;
GCC_UNROLL_LOOPS = YES;
GCC_VERSION = 4.2;
HEADER_SEARCH_PATHS = (
../../3party/protobuf,

View file

@ -65,15 +65,15 @@ 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 -fpascal-strings
QMAKE_CFLAGS += -pipe -miphoneos-version-min=3.1 -mthumb -dead_strip
QMAKE_CFLAGS += -fmessage-length=0 -mno-thumb -marm
QMAKE_CFLAGS += -pipe -miphoneos-version-min=3.1 -dead_strip
QMAKE_CFLAGS_DEPS += -M
QMAKE_CFLAGS_WARN_ON += -Wall -W
QMAKE_CFLAGS_WARN_OFF += -w
QMAKE_CFLAGS_RELEASE += -O3
QMAKE_CFLAGS_DEBUG += -g
QMAKE_CFLAGS_SHLIB += -fPIC
QMAKE_CFLAGS_STATIC_LIB += -fPIC
QMAKE_CFLAGS_SHLIB +=
QMAKE_CFLAGS_STATIC_LIB +=
QMAKE_CFLAGS_YACC += -Wno-unused -Wno-parentheses
QMAKE_CFLAGS_HIDESYMS += -fvisibility=hidden
QMAKE_CFLAGS_PRECOMPILE += -x c-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT}