Fix GIT_BRANCH pulling-in.

This commit is contained in:
David Baker 2015-02-04 21:39:53 +00:00
parent 4c0633b47f
commit 3d76d4d91c
2 changed files with 4 additions and 4 deletions

View file

@ -735,7 +735,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES; GCC_WARN_UNUSED_VARIABLE = YES;
GIT_BRANCH = null; GIT_BRANCH = 0;
IPHONEOS_DEPLOYMENT_TARGET = 8.0; IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MTL_ENABLE_DEBUG_INFO = YES; MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES; ONLY_ACTIVE_ARCH = YES;
@ -777,7 +777,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES; GCC_WARN_UNUSED_VARIABLE = YES;
GIT_BRANCH = null; GIT_BRANCH = 0;
IPHONEOS_DEPLOYMENT_TARGET = 8.0; IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MTL_ENABLE_DEBUG_INFO = NO; MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos; SDKROOT = iphoneos;

View file

@ -53,10 +53,10 @@
NSString *buildBranch = nil; NSString *buildBranch = nil;
NSString *buildNumber = nil; NSString *buildNumber = nil;
// Check whether GIT_BRANCH and BUILD_NUMBER were provided during compilation in command line argument. // Check whether GIT_BRANCH and BUILD_NUMBER were provided during compilation in command line argument.
#if !(MACRO_GIT_BRANCH == null) #if MACRO_GIT_BRANCH
buildBranch = NSStringize(MACRO_GIT_BRANCH); buildBranch = NSStringize(MACRO_GIT_BRANCH);
#endif #endif
#if MACRO_BUILD_NUMBER != 0 #if MACRO_BUILD_NUMBER
buildNumber = [NSString stringWithFormat:@"#%d", MACRO_BUILD_NUMBER]; buildNumber = [NSString stringWithFormat:@"#%d", MACRO_BUILD_NUMBER];
#endif #endif
if (buildBranch && buildNumber) { if (buildBranch && buildNumber) {