Permalink
Browse files

Some more build-flag tweaks

- Prelink before building the static library (makes it a little smaller)
- Turn on warnings-are-errors in EmptyApp
- Turn off NS_BLOCK_ASSERTIONS because we always want assertions enabled.

Change-Id: Iafb9fa8af5cf5384983f2dd457a9fa0e5d653932
Reviewed-on: http://review.couchbase.org/9176
Reviewed-by: Chris Anderson <jchris@couchbase.com>
Tested-by: Jens Alfke <jens@couchbase.com>
  • Loading branch information...
1 parent 5f84914 commit 0773827441bcd042c372cd2c029d2896c2a27638 @snej snej committed Aug 23, 2011
Showing with 6 additions and 2 deletions.
  1. +4 −1 EmptyApp/Empty App.xcodeproj/project.pbxproj
  2. +2 −1 Framework/Couchbase.xcodeproj/project.pbxproj
View
5 EmptyApp/Empty App.xcodeproj/project.pbxproj
@@ -441,13 +441,15 @@
"$(inherited)",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
+ GCC_TREAT_WARNINGS_AS_ERRORS = YES;
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 4.0;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
+ WARNING_CFLAGS = "-Wall";
};
name = Debug;
};
@@ -465,15 +467,16 @@
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Source/Empty App-Prefix.pch";
+ GCC_TREAT_WARNINGS_AS_ERRORS = YES;
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 4.0;
- OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
+ WARNING_CFLAGS = "-Wall";
};
name = Release;
};
View
3 Framework/Couchbase.xcodeproj/project.pbxproj
@@ -342,6 +342,7 @@
COPY_PHASE_STRIP = NO;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
+ GENERATE_MASTER_OBJECT_FILE = YES;
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)/../../vendor/ios-openssl/lib\"",
@@ -360,6 +361,7 @@
armv7,
);
COPY_PHASE_STRIP = YES;
+ GENERATE_MASTER_OBJECT_FILE = YES;
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)/../../vendor/ios-openssl/lib\"",
@@ -455,7 +457,6 @@
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 4.0;
- OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
PUBLIC_HEADERS_FOLDER_PATH = include;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";

0 comments on commit 0773827

Please sign in to comment.