You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Concurrency][Stdlib] Add SwiftStdlibCurrentOS availability, use it.
If you use SwiftStdlibCurrentOS availability, you will be able to
use new types and functions from within the implementation. This
works by, when appropriate, building with the CurrentOS availability
set to the current deployment target.
rdar://150944675
"Enable internal checks for the Swift standard library (useful for debugging the library itself, does not affect checks required for safety)"
463
463
"${SWIFT_STDLIB_ASSERTIONS_default}")
464
464
465
+
option(SWIFT_STDLIB_ENABLE_STRICT_AVAILABILITY
466
+
"Enable strict availability; this will cause things to break at desk or in CI if the host OS is a lower version than some `@availability` annotations in the runtime code"
467
+
FALSE)
468
+
465
469
option(SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER
466
470
"Use the host compiler and not the internal clang to build the swift runtime"
467
471
FALSE)
@@ -1404,8 +1408,9 @@ endif()
1404
1408
1405
1409
if(SWIFT_BUILD_STDLIB OR SWIFT_BUILD_SDK_OVERLAY)
1406
1410
message(STATUS"Building Swift standard library and overlays for SDKs: ${SWIFT_SDKS}")
defaulted_option(SwiftCore_ENABLE_STRICT_AVAILABILITY "Enable strict availability; this will cause things to break at desk or in CI if the host OS is a lower version than some `@availability` annotations in the runtime code")
0 commit comments