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

Add FreeBSD support #12

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

Add FreeBSD support #12

wants to merge 1 commit into from

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

Package.swift Outdated Show resolved Hide resolved
@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.

@@ -758,7 +758,7 @@ class LocalFS: FSProxy, @unchecked Sendable {
}

func listExtendedAttributes(_ path: Path) throws -> [String] {
#if os(Windows)
#if os(Windows) || os(FreeBSD) // FreeBSD blocked on https://github.com/swiftlang/swift/pull/77836
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

note to self: might as well add !OpenBSD before merging this as OpenBSD is known to have explicitly removed support for xattrs.

This allows building Swift Build for FreeBSD hosts, as well as building for a FreeBSD target from a FreeBSD host.
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.

Add FreeBSD support
2 participants