From 173a4934846d93629421989aca90787bb7059b32 Mon Sep 17 00:00:00 2001 From: Justin Spahr-Summers Date: Tue, 24 Jun 2014 22:49:19 -0700 Subject: [PATCH] Pass -D DEBUG to Swift builds in Debug config Useful for conditional compilation with #if DEBUG. --- Base/Configurations/Debug.xcconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Base/Configurations/Debug.xcconfig b/Base/Configurations/Debug.xcconfig index cc0eae1..6ef0040 100644 --- a/Base/Configurations/Debug.xcconfig +++ b/Base/Configurations/Debug.xcconfig @@ -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