Skip to content

Add FreeBSD support #12

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

Merged
merged 1 commit into from
Jun 6, 2025
Merged

Add FreeBSD support #12

merged 1 commit into from
Jun 6, 2025

Conversation

jakepetroules
Copy link
Collaborator

@jakepetroules jakepetroules commented Jan 30, 2025

This allows building Swift Build for FreeBSD hosts, as well as building for a FreeBSD target from a FreeBSD host.

Closes #1

@jakepetroules
Copy link
Collaborator Author

Mostly ready but need a 1.4.1 tag in swift-system to pull in FreeBSD fixes, and would also like to wait for swiftlang/swift#77836 to be merged so xattrs will work.

@jakepetroules
Copy link
Collaborator Author

@swift-ci test

@jakepetroules
Copy link
Collaborator Author

@swift-ci test

@jakepetroules jakepetroules force-pushed the freebsd branch 4 times, most recently from aec7943 to d12bf06 Compare March 15, 2025 08:41
@jakepetroules jakepetroules changed the base branch from main to localfileownership March 15, 2025 08:41
@jakepetroules jakepetroules moved this to In Progress in Swift on FreeBSD Mar 18, 2025
@jakepetroules jakepetroules mentioned this pull request Mar 31, 2025
@jakepetroules jakepetroules force-pushed the freebsd branch 2 times, most recently from b89d1b4 to 48f2571 Compare April 2, 2025 17:35
@jakepetroules jakepetroules force-pushed the freebsd branch 9 times, most recently from 2c41fba to bea1d50 Compare June 5, 2025 08:13
This allows building Swift Build for FreeBSD hosts, as well as building for a FreeBSD target from a FreeBSD host.

Also adds some speculative support for targeting OpenBSD on OpenBSD hosts, since SwiftPM has minimal support.
@jakepetroules
Copy link
Collaborator Author

@swift-ci test

@jakepetroules
Copy link
Collaborator Author

@swift-ci test linux

@jakepetroules jakepetroules enabled auto-merge (rebase) June 6, 2025 01:04
@@ -73,9 +77,9 @@ struct GenericUnixSDKRegistryExtension: SDKRegistryExtension {

let defaultProperties: [String: PropertyListItem]
switch operatingSystem {
case .linux:
case .linux, .freebsd:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the OpenBSD linker support the flag or should that be listed here too?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea, I don't have an OpenBSD toolchain. I just made the "obvious" changes while I was here since at least one person is working on support for that platform.

@jakepetroules jakepetroules merged commit 5bbe231 into main Jun 6, 2025
24 checks passed
@jakepetroules jakepetroules deleted the freebsd branch June 6, 2025 03:40
@github-project-automation github-project-automation bot moved this from In Progress to Done in Swift on FreeBSD Jun 6, 2025
@jakepetroules
Copy link
Collaborator Author

Note: most of the hangs are due to an issue with Task.sleep on FreeBSD which folks are currently looking into.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Add FreeBSD support
3 participants