Module-Debug.xcconfig 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // Configuration settings file format documentation can be found at:
  2. // https://help.apple.com/xcode/#/dev745c5c974
  3. #include "Module-Shared.xcconfig"
  4. // From https://gist.github.com/steipete/f517daee51845c360053f7385900e147
  5. // Hack to exclude arm64 when building Mac Catalyst in Xcode 12.2
  6. // If this is not set and we do not set macosx as SUPPORTED_PLATFORMS, then selecting Mac as target forces arm64.
  7. // This can be worked around by setting ONLY_ACTIVE_ARCH to NO (slow) or using the EXCLUDED_ARCHS trick
  8. // Inspired by https://github.com/Carthage/Carthage/issues/3019
  9. EXCLUDED_ARCHS__IS_MACCATALYST_YES__NATIVE_ARCH_64_BIT_x86_64=arm64 arm64e armv7 armv7s armv6 armv8
  10. EXCLUDED_ARCHS = $(inherited) $(EXCLUDED_ARCHS__IS_MACCATALYST_$(IS_MACCATALYST)__NATIVE_ARCH_64_BIT_$(NATIVE_ARCH_64_BIT))
  11. // Specifies whether binary files that are copied during the build, such as in a Copy Bundle Resources or Copy Files build phase, should be stripped of debugging symbols.
  12. COPY_PHASE_STRIP = NO
  13. // The type of debug information to produce.
  14. DEBUG_INFORMATION_FORMAT = dwarf
  15. // Controls whether assertion logic provided by `NSAssert` is included in the preprocessed source code or is elided during preprocessing.
  16. ENABLE_NS_ASSERTIONS = YES
  17. // When this setting is activated, the product will be built with options appropriate for running automated tests, such as making private interfaces accessible to the tests.
  18. ENABLE_TESTABILITY = YES
  19. // Check for violations of nullability annotations in function calls, return statements, and assignments.
  20. CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES
  21. // Specifies the degree to which the generated code is optimized for speed and binary size.
  22. GCC_OPTIMIZATION_LEVEL = 0
  23. // Space-separated list of preprocessor macros of the form `foo` or `foo=bar`
  24. GCC_PREPROCESSOR_DEFINITIONS = $(inherited) DEBUG=1
  25. // Metal debug info - not sure why we need it
  26. MTL_ENABLE_DEBUG_INFO = YES
  27. // If enabled, only the active architecture is built.
  28. ONLY_ACTIVE_ARCH = YES
  29. // A list of compilation conditions to enable for conditional compilation expressions.
  30. SWIFT_ACTIVE_COMPILATION_CONDITIONS = $(inherited) DEBUG
  31. // This setting controls the way the Swift files in a module are rebuilt.
  32. SWIFT_COMPILATION_MODE = singlefile
  33. // Swift optimization (none, speed, size, wholemodule)
  34. SWIFT_OPTIMIZATION_LEVEL = -Onone
  35. // If enabled, perform validation checks on the product as part of the build process.
  36. VALIDATE_PRODUCT = NO