mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #73007 from xedin/promote-dynamic-actor-isolation-to-upcoming-feature
[SE-0423] Promote `DynamicActorIsolation` to an upcoming feature and add a way to disable checks
This commit is contained in:
@@ -593,6 +593,9 @@ namespace swift {
|
||||
/// type-checking, SIL verification, and IR emission,
|
||||
bool BypassResilienceChecks = false;
|
||||
|
||||
/// Disables `DynamicActorIsolation` feature.
|
||||
bool DisableDynamicActorIsolation = false;
|
||||
|
||||
/// Whether or not to allow experimental features that are only available
|
||||
/// in "production".
|
||||
#ifdef NDEBUG
|
||||
@@ -605,6 +608,11 @@ namespace swift {
|
||||
return ActiveConcurrencyModel == ConcurrencyModel::TaskToThread;
|
||||
}
|
||||
|
||||
bool isDynamicActorIsolationCheckingEnabled() const {
|
||||
return !DisableDynamicActorIsolation &&
|
||||
hasFeature(Feature::DynamicActorIsolation);
|
||||
}
|
||||
|
||||
LangOptions();
|
||||
|
||||
/// Sets the target we are building for and updates platform conditions
|
||||
|
||||
Reference in New Issue
Block a user