Browse Source

Add active compilation conditions

Florian Friedrich 8 months ago
parent
commit
7a3c2a9066
2 changed files with 6 additions and 0 deletions
  1. 3 0
      Configs/Module-Debug.xcconfig
  2. 3 0
      Configs/Module-Shared.xcconfig

+ 3 - 0
Configs/Module-Debug.xcconfig

@@ -38,6 +38,9 @@ MTL_ENABLE_DEBUG_INFO = YES
 // If enabled, only the active architecture is built.
 ONLY_ACTIVE_ARCH = YES
 
+// A list of compilation conditions to enable for conditional compilation expressions.
+SWIFT_ACTIVE_COMPILATION_CONDITIONS = $(inherited) DEBUG
+
 // This setting controls the way the Swift files in a module are rebuilt.
 SWIFT_COMPILATION_MODE = singlefile
 

+ 3 - 0
Configs/Module-Shared.xcconfig

@@ -245,6 +245,9 @@ SUPPORTED_PLATFORMS = macosx iphoneos iphonesimulator watchsimulator watchos app
 // macOS Catalyst support
 SUPPORTS_MACCATALYST = YES
 
+// A list of compilation conditions to enable for conditional compilation expressions.
+SWIFT_ACTIVE_COMPILATION_CONDITIONS = $(inherited)
+
 // Swift language version
 SWIFT_VERSION = 6.0