Skip to content

Conversation

@3405691582
Copy link
Member

Summary

Add preliminary OpenBSD support.

There is potential for simplifying some of these conditional chains. For now, I have avoided doing this since this should be picked onto the release branch and simply extending the chains limits the risk scope slightly.

Dependencies

None.

Testing

CI testing should be sufficient to ensure the change does not affect other platforms.
Testing on OpenBSD requires the platform and the toolchain and the details of setting up an environment are out of scope.

I have run swift build locally on OpenBSD and this succeeds after this change. swift test on Linux with this change passes normally.

On OpenBSD, there seems to be some nontrivial problems related to LMDB on the platform: LMDBTests and a null-pointer dereference at the LMDB layer causes crashes during ExternalRenderNodeTests, IndexActionTests, NavigatorIndexTests and ConvertActionTests. Additionally, tests ConvertSubcommandTests.testAdditionalSymbolGraphFiles and ConvertSubcommandTests.testWithoutBundle fails. The failures and LMDB issues should probably be dealt with outside of this change.

Checklist

Make sure you check off the following items. If they cannot be completed, provide a reason.

  • Added tests (not applicable)
  • Ran the ./bin/test script and it succeeded
  • Updated documentation if necessary (not applicable)

There is potential for simplifying some of these conditional chains.
For now, I have avoided doing this since this should be picked onto the
release branch and simply extending the chains limits the risk scope
slightly.
@3405691582
Copy link
Member Author

@swift-ci please test.

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.

1 participant