瀏覽代碼

Add active compilation conditions

Florian Friedrich 8 月之前
父節點
當前提交
7a3c2a9066
共有 2 個文件被更改,包括 6 次插入0 次删除
  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