Closed benrimmington closed 2 months ago
AvailabilityMacro=
in swift-tools-version: 5.9
would be better than conditional compilation.
Package:
.enableExperimentalFeature("AvailabilityMacro=System 0.0.1:iOS 8")
Framework:
-enable-experimental-feature "AvailabilityMacro=System 0.0.1:macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0"
From the pinned FAQ issue:
Should this be implemented now, using
swift-tools-version:5.8
and SE-0367?I'm not sure if it's an improvement over the current format:
Using
-define-availability
macros only for ABI-stable builds might be possible: