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 {
199199
200200 AutoBool GetSwiftPCMValidation () const ;
201201
202+ bool GetSwiftUseTasksPlugin () const ;
203+
202204 Args GetSwiftPluginServerForPath () const ;
203205
204206 bool GetSwiftAutoImportFrameworks () const ;
Original file line number Diff line number Diff line change @@ -4496,6 +4496,17 @@ AutoBool TargetProperties::GetSwiftPCMValidation() const {
44964496 return AutoBool::Auto;
44974497}
44984498
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+
44994510Args TargetProperties::GetSwiftPluginServerForPath () const {
45004511 const uint32_t idx = ePropertySwiftPluginServerForPath;
45014512
Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ let Definition = "target_experimental" in {
3131 DefaultEnumValue<"llvm::to_underlying(AutoBool::Auto)">,
3232 EnumValues<"OptionEnumValues(g_swift_pcm_validation_values)">,
3333 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">;
3437}
3538
3639let Definition = "target" in {
You can’t perform that action at this time.
0 commit comments