Skip to content

Conversation

@3405691582
Copy link
Member

  • Explanation:

Add a platform executor file for OpenBSD. This cherrypick will help reduce the delta between the branch and an eventual OpenBSD platform port.

  • Scope:

Only limited to OpenBSD and the build system.

  • Issues:

See OpenBSD port issue in #78437

  • Original PRs:

#80877

  • Risk:

Minimal, as changes are limited to OpenBSD only.

  • Testing:

Original change has passed CI.

  • Reviewers:

@ktoso
@compnerd
@etcwilde

@3405691582 3405691582 requested a review from a team as a code owner April 28, 2025 23:36
@3405691582 3405691582 changed the title Add a platform executor module for OpenBSD. [6.2][cherrypick] Add a platform executor module for OpenBSD. Apr 28, 2025
@3405691582
Copy link
Member Author

@swift-ci please test.

@3405691582
Copy link
Member Author

Please merge on my behalf, thank you!

@3405691582 3405691582 force-pushed the platform_executor_62 branch from 3edd141 to 46c0f4a Compare May 8, 2025 21:44
@3405691582
Copy link
Member Author

@swift-ci please test.

This is basically the same as the one for Linux, but it would be
somewhat awkward to add the platform conditional on a file named for
Linux when OpenBSD is not Linux.

Important note: if Dispatch is disabled, then this will cause a
compilation error (probably not just for OpenBSD either), because
PlatformExecutorFactory is both defined in PlatformExecutorNone.swift
and PlatformExecutor<...>.swift in this case.

Because this only bites OpenBSD bootstrap builds, and since OpenBSD
support has been upstreamed to Dispatch, default to the Dispatch
implementation for now to get this in, and we'll refactor in a different
pr.
@3405691582 3405691582 force-pushed the platform_executor_62 branch from 46c0f4a to 7a87fa5 Compare May 8, 2025 21:46
@3405691582
Copy link
Member Author

@swift-ci please test.

@3405691582
Copy link
Member Author

Had to rebase to keep sync with the branch. @DougGregor could you enable auto-merge or merge on my behalf when ready? Thanks!

@DougGregor DougGregor enabled auto-merge May 8, 2025 22:52
@DougGregor DougGregor merged commit c3812f6 into swiftlang:release/6.2 May 9, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants