Skip to content

Conversation

@owenv
Copy link
Contributor

@owenv owenv commented Oct 29, 2025

This ensures that even in a debug build, we build a universal binary on macOS if it's requested.

Closes #8982 by resolving the remaining issue building swiftly with the Swift Build backend

@owenv
Copy link
Contributor Author

owenv commented Oct 29, 2025

@swift-ci test

targetArchitecture: buildParameters.triple.archName,
supportedArchitectures: [],
disableOnlyActiveArch: false
disableOnlyActiveArch: (buildParameters.architectures?.count ?? 1) > 1
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we just always disable this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think if you do a debug build and don't explicitly specify any target/arch we probably shouldn't build universal

@owenv owenv merged commit 04b0249 into swiftlang:main Oct 29, 2025
6 checks passed
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.

Unable to resolve build file errors when build universal binaries for macOS with swiftbuild build system

2 participants