File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,8 @@ class TargetProperties : public Properties {
199
199
200
200
AutoBool GetSwiftPCMValidation () const ;
201
201
202
+ bool GetSwiftUseTasksPlugin () const ;
203
+
202
204
Args GetSwiftPluginServerForPath () const ;
203
205
204
206
bool GetSwiftAutoImportFrameworks () const ;
Original file line number Diff line number Diff line change @@ -4496,6 +4496,17 @@ AutoBool TargetProperties::GetSwiftPCMValidation() const {
4496
4496
return AutoBool::Auto;
4497
4497
}
4498
4498
4499
+ bool TargetProperties::GetSwiftUseTasksPlugin () const {
4500
+ const Property *exp_property =
4501
+ m_collection_sp->GetPropertyAtIndex (ePropertyExperimental);
4502
+ OptionValueProperties *exp_values =
4503
+ exp_property->GetValue ()->GetAsProperties ();
4504
+ if (exp_values)
4505
+ return exp_values->GetPropertyAtIndexAs <bool >(ePropertySwiftUseTasksPlugin)
4506
+ .value_or (true );
4507
+ return true ;
4508
+ }
4509
+
4499
4510
Args TargetProperties::GetSwiftPluginServerForPath () const {
4500
4511
const uint32_t idx = ePropertySwiftPluginServerForPath;
4501
4512
Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ let Definition = "target_experimental" in {
31
31
DefaultEnumValue<"llvm::to_underlying(AutoBool::Auto)">,
32
32
EnumValues<"OptionEnumValues(g_swift_pcm_validation_values)">,
33
33
Desc<"Enable validation when loading Clang PCM files (-fvalidate-pch, -fmodules-check-relocated).">;
34
+ def SwiftUseTasksPlugin: Property<"swift-tasks-plugin-enabled", "Boolean">,
35
+ DefaultTrue,
36
+ Desc<"Enables the swift plugin converting tasks into threads">;
34
37
}
35
38
36
39
let Definition = "target" in {
You can’t perform that action at this time.
0 commit comments