mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Remove support for Swift 3 @objc inference.
Obsolete the `-enable-swift3-objc-inference` option and related options by removing support for inferring `@objc` attributes using Swift 3 rules. Automated migration from Swift 3 has not been supported by the compiler for many years.
This commit is contained in:
@@ -599,10 +599,6 @@ function(_compile_swift_files
|
||||
list(APPEND swift_flags "-Xfrontend" "-disable-standard-substitutions-in-reflection-mangling")
|
||||
endif()
|
||||
|
||||
if (SWIFTFILE_IS_STDLIB_CORE OR SWIFTFILE_IS_SDK_OVERLAY)
|
||||
list(APPEND swift_flags "-warn-swift3-objc-inference-complete")
|
||||
endif()
|
||||
|
||||
if(NOT SWIFT_STDLIB_ENABLE_OBJC_INTEROP)
|
||||
list(APPEND swift_flags "-Xfrontend" "-disable-objc-interop")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user