Skip to content

Commit 1761b10

Browse files
committed
Add a configuration specific to profiling
1 parent dff2dd3 commit 1761b10

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Base/Profile.xcconfig

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
//
2+
// This file defines the base configuration for an optional profiling-specific
3+
// build of any project. To use these settings, create a Profile configuration
4+
// in your project, and use this file at the project level for the new
5+
// configuration.
6+
//
7+
8+
#include "Common.xcconfig"
9+
10+
// Whether to strip debugging symbols when copying resources (like included
11+
// binaries)
12+
COPY_PHASE_STRIP = NO
13+
14+
// Whether to generate debugging symbols
15+
GCC_GENERATE_DEBUGGING_SYMBOLS = YES
16+
17+
// The optimization level (0, 1, 2, 3, s) for the produced binary
18+
GCC_OPTIMIZATION_LEVEL = s
19+
20+
// Preproccessor definitions to apply to each file compiled
21+
GCC_PREPROCESSOR_DEFINITIONS = NDEBUG=1
22+
23+
// Whether to enable link-time optimizations (such as inlining across translation
24+
// units)
25+
LLVM_LTO = YES
26+
27+
// Whether to only build the active architecture
28+
ONLY_ACTIVE_ARCH = YES
29+
30+
// Whether to strip debugging symbols when copying the built product to its
31+
// final installation location
32+
STRIP_INSTALLED_PRODUCT = NO

0 commit comments

Comments
 (0)