Skip to content

Add FreeBSD platform again to SwiftBuild PIF builder #8686

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

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

Conversation

pmattos
Copy link
Contributor

@pmattos pmattos commented May 16, 2025

Motivation:

Fix a silly typo I did in #8539 (i.e., Sources/SwiftBuildSupport/PackagePIFBuilder+Helpers.swift), where I removed thefreebsd platform by mistake 🫠

Modifications:

Add back freebsdto the SwiftBuild.ProjectModel.BuildSettings.Platform value we sent over to Swift Build.

Tracked by rdar://151042619.

@pmattos
Copy link
Contributor Author

pmattos commented May 16, 2025

@swift-ci please test

@pmattos pmattos enabled auto-merge (squash) May 16, 2025 20:58
@@ -968,6 +968,7 @@ extension ProjectModel.BuildSettings.Platform {
case .windows: .windows
case .wasi: .wasi
case .openbsd: .openbsd
case .freebsd: .freebsd
default: preconditionFailure("Unexpected platform: \(platform.name)")
Copy link
Contributor Author

@pmattos pmattos May 17, 2025

Choose a reason for hiding this comment

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

FYI, I discussed this offline with @jakepetroules and will add proper error handling here.

No more hard preconditionFailures, as this could cause clients to crash.

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