Skip to content

Commit 4963400

Browse files
Merge branch 'main' into automerge/merge-main-2025-06-12_03-56
2 parents 9b607ce + 1b2d827 commit 4963400

File tree

109 files changed

+2980
-881
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+2980
-881
lines changed

.github/workflows/automerge.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ jobs:
1010
name: Create PR to merge main into release branch
1111
uses: swiftlang/github-workflows/.github/workflows/create_automerge_pr.yml@main
1212
with:
13-
base_branch: release/6.2
13+
head_branch: release/6.2
14+
base_branch: main
1415
permissions:
1516
contents: write
1617
pull-requests: write

.licenseignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
**/Package.swift
66
.dir-locals.el
77
.editorconfig
8+
.swift-version
89
CODEOWNERS
910
Package.swift

.swift-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
6.1.0

Package.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ let package = Package(
110110
"SWBBuildSystem",
111111
"SWBServiceCore",
112112
"SWBTaskExecution",
113-
.product(name: "SystemPackage", package: "swift-system", condition: .when(platforms: [.linux, .android, .windows])),
113+
.product(name: "SystemPackage", package: "swift-system", condition: .when(platforms: [.linux, .openbsd, .android, .windows, .custom("freebsd")])),
114114
],
115115
exclude: ["CMakeLists.txt"],
116116
swiftSettings: swiftSettings(languageMode: .v5)),
@@ -201,7 +201,7 @@ let package = Package(
201201
"SWBCSupport",
202202
"SWBLibc",
203203
.product(name: "ArgumentParser", package: "swift-argument-parser"),
204-
.product(name: "SystemPackage", package: "swift-system", condition: .when(platforms: [.linux, .android, .windows])),
204+
.product(name: "SystemPackage", package: "swift-system", condition: .when(platforms: [.linux, .openbsd, .android, .windows, .custom("freebsd")])),
205205
],
206206
exclude: ["CMakeLists.txt"],
207207
swiftSettings: swiftSettings(languageMode: .v5)),
@@ -369,7 +369,7 @@ let package = Package(
369369
// Perf tests
370370
.testTarget(
371371
name: "SWBBuildSystemPerfTests",
372-
dependencies: ["SWBBuildSystem", "SWBTestSupport"],
372+
dependencies: ["SWBBuildSystem", "SWBTestSupport", "SwiftBuildTestSupport"],
373373
swiftSettings: swiftSettings(languageMode: .v6)),
374374
.testTarget(
375375
name: "SWBCASPerfTests",
@@ -455,11 +455,11 @@ if useLocalDependencies {
455455
}
456456
} else {
457457
package.dependencies += [
458-
.package(url: "https://github.com/swiftlang/swift-driver.git", branch: "release/6.2"),
458+
.package(url: "https://github.com/swiftlang/swift-driver.git", branch: "main"),
459459
.package(url: "https://github.com/apple/swift-system.git", .upToNextMajor(from: "1.4.1")),
460460
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.0.3"),
461461
]
462462
if !useLLBuildFramework {
463-
package.dependencies += [.package(url: "https://github.com/swiftlang/swift-llbuild.git", branch: "release/6.2"),]
463+
package.dependencies += [.package(url: "https://github.com/swiftlang/swift-llbuild.git", branch: "main"),]
464464
}
465465
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ When building SwiftPM from sources which include Swift Build integration, passin
1212

1313
### With Xcode
1414

15-
Changes to swift-build can also be tested in Xcode using the `launch-xcode` command plugin provided by the package. Run `swift package --disable-sandbox launch-xcode` from your checkout of swift-build to launch a copy of the currently `xcode-select`ed Xcode.app configured to use your modified copy of the build system service. This workflow is currently supported when using Xcode 16.2.
15+
Changes to swift-build can also be tested in Xcode using the `launch-xcode` command plugin provided by the package. Run `swift package --disable-sandbox launch-xcode` from your checkout of swift-build to launch a copy of the currently `xcode-select`ed Xcode.app configured to use your modified copy of the build system service. This workflow is generally only supported when using the latest available Xcode version.
1616

1717
### With xcodebuild
1818

19-
Changes to swift-build can also be tested in xcodebuild using the `run-xcodebuild` command plugin provided by the package. Run `swift package --disable-sandbox run-xcodebuild` from your checkout of swift-build to run xcodebuild from the currently `xcode-select`ed Xcode.app configured to use your modified copy of the build system service. Arguments followed by `--` will be forwarded to xcodebuild unmodified. This workflow is currently supported when using Xcode 16.2.
19+
Changes to swift-build can also be tested in xcodebuild using the `run-xcodebuild` command plugin provided by the package. Run `swift package --disable-sandbox run-xcodebuild` from your checkout of swift-build to run xcodebuild from the currently `xcode-select`ed Xcode.app configured to use your modified copy of the build system service. Arguments followed by `--` will be forwarded to xcodebuild unmodified. This workflow is generally only supported when using the latest available Xcode version.
2020

2121
### Debugging
2222

Sources/SWBApplePlatform/Plugin.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ struct AppleSettingsBuilderExtension: SettingsBuilderExtension {
239239
func addPlatformSDKSettings(_ platform: SWBCore.Platform?, _ sdk: SDK, _ sdkVariant: SDKVariant?) -> [String : String] { [:] }
240240
func xcconfigOverrideData(fromParameters: BuildParameters) -> ByteString { ByteString() }
241241
func getTargetTestingSwiftPluginFlags(_ scope: MacroEvaluationScope, toolchainRegistry: ToolchainRegistry, sdkRegistry: SDKRegistry, activeRunDestination: RunDestinationInfo?, project: SWBCore.Project?) -> [String] { [] }
242-
func shouldSkipPopulatingValidArchs(platform: SWBCore.Platform) -> Bool { false }
242+
func shouldSkipPopulatingValidArchs(platform: SWBCore.Platform, sdk: SDK?) -> Bool { false }
243243
func shouldDisableXOJITPreviews(platformName: String, sdk: SDK?) -> Bool { false }
244244
func overridingBuildSettings(_: MacroEvaluationScope, platform: SWBCore.Platform?, productType: ProductTypeSpec) -> [String : String] { [:] }
245245
}

Sources/SWBApplePlatform/Specs/DarwinProductTypes.xcspec

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,4 +461,17 @@
461461
);
462462
Platforms = (driverkit);
463463
},
464+
{
465+
_Domain = darwin;
466+
Type = ProductType;
467+
Identifier = com.apple.product-type.tool.swiftpm-test-runner;
468+
Name = "SwiftPM Unit Test Runner";
469+
Description = "SwiftPM Unit Test Runner";
470+
DefaultBuildProperties = {
471+
__SKIP_BUILD = YES;
472+
};
473+
PackageTypes = (
474+
com.apple.package-type.mach-o-executable
475+
);
476+
},
464477
)

Sources/SWBApplePlatform/Specs/iOSSimulator.xcspec

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,6 @@
4040
SortNumber = 107;
4141
},
4242

43-
{
44-
_Domain = iphonesimulator;
45-
Type = Architecture;
46-
Identifier = arm64e;
47-
PerArchBuildSettingName = "arm64e";
48-
SortNumber = 108;
49-
},
50-
5143
// DEPRECATED
5244

5345
{

Sources/SWBApplePlatform/Specs/tvOSSimulator.xcspec

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,6 @@
4949
SortNumber = 107;
5050
},
5151

52-
{
53-
_Domain = appletvsimulator;
54-
Type = Architecture;
55-
Identifier = arm64e;
56-
PerArchBuildSettingName = "arm64e";
57-
SortNumber = 108;
58-
},
59-
6052
// DEPRECATED
6153

6254
{

Sources/SWBApplePlatform/Specs/watchOSSimulator.xcspec

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,6 @@
4848
SortNumber = 107;
4949
},
5050

51-
{
52-
_Domain = watchsimulator;
53-
Type = Architecture;
54-
Identifier = arm64e;
55-
PerArchBuildSettingName = "arm64e";
56-
SortNumber = 108;
57-
},
58-
5951
// DEPRECATED
6052

6153
{

0 commit comments

Comments
 (0)