Skip to content
  • David Geldreich's avatar
    Xcode: Pass compile definitions to Swift · 5cb625eb
    David Geldreich authored
    correct Xcode generator Swift definitions
    original code was defining GCC_PREPROCESSOR_DEFINITIONS which is valid only for C languages
    add definitions to SWIFT_ACTIVE_COMPILATION_CONDITIONS when Swift language is used in the target
    add test in SwiftOnly
    for old Xcode (<8.0), append defines to cflags so it ends up in OTHER_SWIFT_FLAGS
    
    Fixes: #23637
    5cb625eb