Skip to content

Instantly share code, notes, and snippets.

@davertay
Created March 28, 2014 07:32
Show Gist options
  • Save davertay/9827262 to your computer and use it in GitHub Desktop.
Save davertay/9827262 to your computer and use it in GitHub Desktop.
XCode5 conditional architecture and configuration flags
// Truncated conversion warning
GCC_WARN_64_TO_32_BIT_CONVERSION = NO
GCC_WARN_64_TO_32_BIT_CONVERSION[arch=*64] = YES
// This works but is not honoured when building test target for some reason
// OTHER_CFLAGS = -fsingle-precision-constant
OTHER_CFLAGS[config=Debug] = -DDEBUG=1 -fsingle-precision-constant
OTHER_CFLAGS[config=Debug][arch=*64] = -DDEBUG=1
OTHER_CFLAGS[config=Ad Hoc] = -DNS_BLOCK_ASSERTIONS=1 -fsingle-precision-constant
OTHER_CFLAGS[config=Ad Hoc][arch=*64] = -DNS_BLOCK_ASSERTIONS=1
OTHER_CFLAGS[config=Release] = -DNS_BLOCK_ASSERTIONS=1 -fsingle-precision-constant
OTHER_CFLAGS[config=Release][arch=*64] = -DNS_BLOCK_ASSERTIONS=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment