Skip to content
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

Fix bootstrapping on OpenBSD #8451

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

3405691582
Copy link
Member

Motivation:

Ensure swiftpm bootstraps successfully to fully build an OpenBSD toolchain.

Modifications:

  • Add the nobtcfi linker flag to the bootstrap script for OpenBSD. This is unconditional for now since swiftpm uses Concurrency liberally and this triggers #80059, so swiftpm only builds on the configuration where BTCFI is disabled. We can revisit some of that perhaps later.

  • Ensure SPMSQLite3 builds with the correct link library search path flag in CMakeLists.txt.

  • Update Package.swift conditionals for SPMSQLite3.

Result:

swiftpm successfully builds and bootstraps on OpenBSD.

@3405691582
Copy link
Member Author

@swift-ci please test.

Only minor changes are required, however because of #80059 and swiftpm's
use of Concurrency, this only builds on the configuration where BTCFI is
disabled. We can revisit some of that perhaps later; what matters is that
swiftpm finally builds.
@3405691582
Copy link
Member Author

@swift-ci please test.

@MaxDesiatov MaxDesiatov changed the title swiftpm bootstraps on OpenBSD. Fix bootstrapping on OpenBSD Apr 6, 2025
@3405691582
Copy link
Member Author

@swift-ci please test Windows platform

@MaxDesiatov
Copy link
Contributor

@swift-ci test windows

@MaxDesiatov
Copy link
Contributor

@swift-ci test self hosted windows

@3405691582
Copy link
Member Author

@swift-ci please test self hosted windows

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