Skip to content

Commit

Permalink
Pass -D DEBUG to Swift builds in Debug config
Browse files Browse the repository at this point in the history
Useful for conditional compilation with #if DEBUG.
  • Loading branch information
jspahrsummers committed Jun 25, 2014
1 parent fb6084f commit 173a493
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Base/Configurations/Debug.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ ONLY_ACTIVE_ARCH = YES
// These settings catch some errors in integer arithmetic
OTHER_CFLAGS = -ftrapv

// Other flags to pass to the Swift compiler
//
// This enables conditional compilation with #if DEBUG
OTHER_SWIFT_FLAGS = -D DEBUG

// Whether to strip debugging symbols when copying the built product to its
// final installation location
STRIP_INSTALLED_PRODUCT = NO
Expand Down

0 comments on commit 173a493

Please sign in to comment.