Skip to content

[Concurrency] Remove -executor-factory option and replace with magic type. #80795

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: release/6.2
Choose a base branch
from

Conversation

al45tair
Copy link
Contributor

We decided that using a magic typealias to set the executor factory was better than using a compiler option. Remove the -executor-factory option, and replace by looking up the DefaultExecutorFactory type, first in the main module, and then if that fails in Concurrency.

rdar://149058236

…type.

We decided that using a magic typealias to set the executor factory was better
than using a compiler option. Remove the `-executor-factory` option, and replace
by looking up the `DefaultExecutorFactory` type, first in the main module, and
then if that fails in Concurrency.

rdar://149058236
@al45tair al45tair requested a review from a team as a code owner April 14, 2025 08:23
@al45tair
Copy link
Contributor Author

Explanation: In conversations with Holly and Konrad, we decided that a magic typealias was a better way to express the default executor factory, and also avoids having to add options to SwiftPM, swift-build and the driver.
Risk: Low. This isn't a large change from the existing behaviour inside the compiler — it just uses a typealias rather than an option.
Original PR: #80758
Reviewed by: @ktoso, @dschaefer2
Resolves: rdar://149058236
Tests: The concurrency tests exercise this code.

@al45tair
Copy link
Contributor Author

@swift-ci Please test

@al45tair al45tair added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.2 labels Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 6.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants