Commit Graph

3 Commits

Author SHA1 Message Date
Arnold Schwaighofer
af0c3f8543 Use -enable-objc-interop instead of REQUIRES: objc_interop 2019-06-13 14:20:37 -07:00
Arnold Schwaighofer
af986a2902 Test requires objc_interop 2019-06-13 11:16:54 -07:00
Arnold Schwaighofer
1980c4af3c Disallow dynamic on native Swift declarations under library-evolution mode
The current ABI of dynamic is not what we want for certain declarations.

e.g

dynamic var x : Int {
  willset {
  }
}

Is exposed in the .swiftinterface file as

dynamic var x : Int {
  get {}
  set {}
}

However, the actual implementation is marking the willSet only dynamic.

var x : Int {
  dynamic willSet() {}
  get {}
  set {}
}

To be able to rely on `dynamic` in the future we disable dynamic (for
non-@objc) under library-evolution for now until we have made sure that
the ABI is proper.

rdar://51678074
2019-06-12 14:59:53 -07:00