2 // ReleaseProject.xcconfig
4 // These are Release Configuration project settings for the gtest framework
5 // and examples. It is set in the "Based On:" dropdown in the "Project" info
7 // This file is based on the Xcode Configuration files in:
8 // https://github.com/google/google-toolbox-for-mac
11 #include "General.xcconfig"
13 // subconfig/Release.xcconfig
15 // Optimize for space and size (Apple recommendation)
16 GCC_OPTIMIZATION_LEVEL = s
18 // Deploment postprocessing is what triggers Xcode to strip
19 DEPLOYMENT_POSTPROCESSING = YES
22 GCC_GENERATE_DEBUGGING_SYMBOLS = NO
24 // Dead code strip does not affect ObjC code but can help for C
25 DEAD_CODE_STRIPPING = YES
27 // NDEBUG is used by things like assert.h, so define it for general compat.
28 // ASSERT going away in release tends to create unused vars.
29 OTHER_CFLAGS = $(OTHER_CFLAGS) -DNDEBUG=1 -Wno-unused-variable
31 // When we strip we want to strip all symbols in release, but save externals.