Skip to content

Mark Swift Build as the default build system#9661

Draft
owenv wants to merge 3 commits intoswiftlang:mainfrom
owenv:owenv/bootstrap-fun
Draft

Mark Swift Build as the default build system#9661
owenv wants to merge 3 commits intoswiftlang:mainfrom
owenv:owenv/bootstrap-fun

Conversation

@owenv
Copy link
Contributor

@owenv owenv commented Jan 28, 2026

  • Use Swift Build for universal binary bootstrapping
  • Make SwiftBuild the default build system in the swift-bootstrap executable
  • Make SwiftBuild the default build system in SwiftPM

@owenv
Copy link
Contributor Author

owenv commented Jan 28, 2026

@swift-ci test

@owenv
Copy link
Contributor Author

owenv commented Feb 12, 2026

@swift-ci test

@bkhouri bkhouri changed the title Use Swift Build for universal binary bootstrapping Mark Swift Build as the default build system Feb 12, 2026
@bkhouri
Copy link
Contributor

bkhouri commented Feb 12, 2026

@swift-ci test

@bkhouri
Copy link
Contributor

bkhouri commented Feb 12, 2026

@swift-ci test windows

1 similar comment
@bkhouri
Copy link
Contributor

bkhouri commented Feb 12, 2026

@swift-ci test windows

@bkhouri bkhouri self-assigned this Feb 17, 2026
@bkhouri
Copy link
Contributor

bkhouri commented Feb 17, 2026

@swift-ci test self hosted

@bkhouri
Copy link
Contributor

bkhouri commented Feb 17, 2026

@swift-ci test

3 similar comments
@bkhouri
Copy link
Contributor

bkhouri commented Feb 18, 2026

@swift-ci test

@bkhouri
Copy link
Contributor

bkhouri commented Feb 19, 2026

@swift-ci test

@bkhouri
Copy link
Contributor

bkhouri commented Feb 19, 2026

@swift-ci test

@bkhouri
Copy link
Contributor

bkhouri commented Feb 23, 2026

@swift-ci test self hosted windows

@bkhouri
Copy link
Contributor

bkhouri commented Feb 23, 2026

@swift-ci test linux

@bkhouri
Copy link
Contributor

bkhouri commented Feb 24, 2026

@swift-ci test

@bkhouri
Copy link
Contributor

bkhouri commented Feb 24, 2026

@swift-ci test windows

@bkhouri
Copy link
Contributor

bkhouri commented Feb 25, 2026

@swift-ci test

@bkhouri
Copy link
Contributor

bkhouri commented Feb 25, 2026

@swift-ci test windows

@bkhouri
Copy link
Contributor

bkhouri commented Feb 26, 2026

@swift-ci test linux

@bkhouri
Copy link
Contributor

bkhouri commented Feb 28, 2026

@swift-ci test

@bkhouri
Copy link
Contributor

bkhouri commented Feb 28, 2026

@swift-ci test windows

@bkhouri
Copy link
Contributor

bkhouri commented Mar 4, 2026

@bkhouri
Copy link
Contributor

bkhouri commented Mar 4, 2026

@bkhouri
Copy link
Contributor

bkhouri commented Mar 5, 2026

2 similar comments
@bkhouri
Copy link
Contributor

bkhouri commented Mar 5, 2026

@bkhouri
Copy link
Contributor

bkhouri commented Mar 5, 2026

@bkhouri
Copy link
Contributor

bkhouri commented Mar 10, 2026

@bkhouri
Copy link
Contributor

bkhouri commented Mar 11, 2026

1 similar comment
@bkhouri
Copy link
Contributor

bkhouri commented Mar 11, 2026

@bkhouri
Copy link
Contributor

bkhouri commented Mar 11, 2026

swiftlang/swift-build#1159

@swift-ci test windows

@bkhouri
Copy link
Contributor

bkhouri commented Mar 11, 2026

value.append("linux")
elif "windows" in targetTriple:
value.append("windows")
return "-".join(value).capitalize()
Copy link
Contributor

Choose a reason for hiding this comment

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

can we add a macos case and then make the else case an error? otherwise this will just be wrong on FreeBSD, for example (and we may actually hit that during FreeBSD bringup?)

# get_build_target(args,cross_compile=True)
'out',
'Products',
'Debug-android', # ?
Copy link
Contributor

Choose a reason for hiding this comment

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

yes, this the the correct directory suffix name

)

let rootPackagesPaths = rootPackages.map { $0.path }
let ids = rootPackagesPaths.map { $0.pathString}.joined(separator: ",")
Copy link
Contributor

Choose a reason for hiding this comment

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

Do any of these need to be sorted for determinism?

case .native: "Native Build System"
case .swiftbuild: "Swift Build build engine (preview; recommended for feedback and testing. Report issues at https://github.com/swiftlang/swift-package-manager/issues)"
case .swiftbuild: "Swift Build build engine (Report issues at https://github.com/swiftlang/swift-package-manager/issues)"
case .xcode: "Xcode build system integration (discouraged)"
Copy link
Contributor

Choose a reason for hiding this comment

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

time to mark "deprecated" at this point?

@@ -228,7 +228,7 @@ public struct BuildSystemProvider {
public var defaultValueDescription: String {
switch self {
case .native: "Native Build System"
Copy link
Contributor

Choose a reason for hiding this comment

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

time to mark "deprecated" at this point?

@bkhouri bkhouri force-pushed the owenv/bootstrap-fun branch from 1118ffd to b0ca921 Compare March 11, 2026 23:47
@bkhouri
Copy link
Contributor

bkhouri commented Mar 11, 2026

@swift-ci test

@bkhouri
Copy link
Contributor

bkhouri commented Mar 11, 2026

@swift-ci test windows

@bkhouri bkhouri force-pushed the owenv/bootstrap-fun branch from b0ca921 to 863ed1c Compare March 12, 2026 01:01
@bkhouri
Copy link
Contributor

bkhouri commented Mar 12, 2026

@swift-ci test

@owenv owenv force-pushed the owenv/bootstrap-fun branch from 863ed1c to a959098 Compare March 12, 2026 17:49
@owenv
Copy link
Contributor Author

owenv commented Mar 12, 2026

@swift-ci test

@owenv
Copy link
Contributor Author

owenv commented Mar 12, 2026

@swift-ci test windows

@owenv
Copy link
Contributor Author

owenv commented Mar 12, 2026

@swift-ci test macOS

@owenv owenv force-pushed the owenv/bootstrap-fun branch from a959098 to 6b32581 Compare March 13, 2026 00:56
@owenv
Copy link
Contributor Author

owenv commented Mar 13, 2026

@swift-ci test

@owenv
Copy link
Contributor Author

owenv commented Mar 13, 2026

@swift-ci test Windows

@owenv
Copy link
Contributor Author

owenv commented Mar 13, 2026

@swift-ci test self hosted Windows

@owenv
Copy link
Contributor Author

owenv commented Mar 13, 2026

@swift-ci test macOS

@owenv
Copy link
Contributor Author

owenv commented Mar 13, 2026

@swift-ci test macOS self hosted

@owenv
Copy link
Contributor Author

owenv commented Mar 13, 2026

@swift-ci test macOS

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.

3 participants