-
Notifications
You must be signed in to change notification settings - Fork 97
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
Conversation
4ad91c9
to
b2567ca
Compare
bae20c1
to
0c69645
Compare
62158a3
to
80ce079
Compare
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. |
01bfd23
to
13ec726
Compare
@swift-ci test |
13ec726
to
43f012e
Compare
@swift-ci test |
aec7943
to
d12bf06
Compare
b89d1b4
to
48f2571
Compare
2c41fba
to
bea1d50
Compare
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.
@swift-ci test |
@swift-ci test linux |
@@ -73,9 +77,9 @@ struct GenericUnixSDKRegistryExtension: SDKRegistryExtension { | |||
|
|||
let defaultProperties: [String: PropertyListItem] | |||
switch operatingSystem { | |||
case .linux: | |||
case .linux, .freebsd: |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Note: most of the hangs are due to an issue with Task.sleep on FreeBSD which folks are currently looking into. |
This allows building Swift Build for FreeBSD hosts, as well as building for a FreeBSD target from a FreeBSD host.
Closes #1