Преглед на файлове

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