Skip to content

Commit 12e894c

Browse files
Merge branch 'main' into automerge/merge-main-2025-08-06_22-53
2 parents 419c192 + 2f3a47a commit 12e894c

File tree

178 files changed

+6246
-1590
lines changed

Some content is hidden

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

178 files changed

+6246
-1590
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: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@ func swiftSettings(languageMode: SwiftLanguageMode) -> [SwiftSetting] {
7070
let package = Package(
7171
name: "SwiftBuild",
7272
defaultLocalization: "en",
73-
platforms: [.macOS("13.0"), .iOS("17.0"), .macCatalyst("17.0")],
73+
platforms: [
74+
.macOS(.v14),
75+
.iOS("17.0"),
76+
.macCatalyst("17.0"),
77+
],
7478
products: [
7579
.executable(name: "swbuild", targets: ["swbuild"]),
7680
.executable(name: "SWBBuildServiceBundle", targets: ["SWBBuildServiceBundle"]),
@@ -369,7 +373,7 @@ let package = Package(
369373
// Perf tests
370374
.testTarget(
371375
name: "SWBBuildSystemPerfTests",
372-
dependencies: ["SWBBuildSystem", "SWBTestSupport"],
376+
dependencies: ["SWBBuildSystem", "SWBTestSupport", "SwiftBuildTestSupport"],
373377
swiftSettings: swiftSettings(languageMode: .v6)),
374378
.testTarget(
375379
name: "SWBCASPerfTests",
@@ -455,11 +459,11 @@ if useLocalDependencies {
455459
}
456460
} else {
457461
package.dependencies += [
458-
.package(url: "https://github.com/swiftlang/swift-driver.git", branch: "release/6.2"),
462+
.package(url: "https://github.com/swiftlang/swift-driver.git", branch: "main"),
459463
.package(url: "https://github.com/apple/swift-system.git", .upToNextMajor(from: "1.5.0")),
460464
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.0.3"),
461465
]
462466
if !useLLBuildFramework {
463-
package.dependencies += [.package(url: "https://github.com/swiftlang/swift-llbuild.git", branch: "release/6.2"),]
467+
package.dependencies += [.package(url: "https://github.com/swiftlang/swift-llbuild.git", branch: "main"),]
464468
}
465469
}

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/SWBAndroidPlatform/AndroidSDK.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@ public import Foundation
5757

5858
let metaPath = ndkPath.path.join("meta")
5959

60-
guard #available(macOS 14, *) else {
61-
throw StubError.error("Unsupported macOS version")
62-
}
63-
6460
if version < Self.minimumNDKVersion {
6561
throw Error.unsupportedVersion(path: ndkPath, minimumVersion: Self.minimumNDKVersion)
6662
}

Sources/SWBApplePlatform/AssetCatalogCompiler.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public final class ActoolCompilerSpec : GenericCompilerSpec, SpecIdentifierType,
5555
}
5656

5757
private func assetTagCombinations(catalogInputs inputs: [FileToBuild], _ cbc: CommandBuildContext, _ delegate: any TaskGenerationDelegate) async throws -> Set<Set<String>> {
58-
return try await executeExternalTool(cbc, delegate, commandLine: [resolveExecutablePath(cbc, cbc.scope.actoolExecutablePath()).str, "--print-asset-tag-combinations", "--output-format", "xml1"] + inputs.map { $0.absolutePath.str }, workingDirectory: cbc.producer.defaultWorkingDirectory, environment: environmentFromSpec(cbc, delegate).bindingsDictionary, executionDescription: "Compute asset tag combinations") { output in
58+
return try await executeExternalTool(cbc, delegate, commandLine: [resolveExecutablePath(cbc, cbc.scope.actoolExecutablePath(), delegate: delegate).str, "--print-asset-tag-combinations", "--output-format", "xml1"] + inputs.map { $0.absolutePath.str }, workingDirectory: cbc.producer.defaultWorkingDirectory, environment: environmentFromSpec(cbc, delegate).bindingsDictionary, executionDescription: "Compute asset tag combinations") { output in
5959
struct AssetCatalogToolOutput: Decodable {
6060
struct Diagnostic: Decodable {
6161
let description: String

Sources/SWBApplePlatform/InterfaceBuilderCompiler.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ public final class IbtoolCompilerSpecStoryboard: IbtoolCompilerSpec, SpecIdentif
176176
}
177177
}
178178

179-
override public func commandLineFromTemplate(_ cbc: CommandBuildContext, _ delegate: any TaskGenerationDelegate, optionContext: (any DiscoveredCommandLineToolSpecInfo)?, specialArgs: [String] = [], lookup: ((MacroDeclaration) -> MacroExpression?)? = nil) -> [CommandLineArgument] {
180-
var commandLine = super.commandLineFromTemplate(cbc, delegate, optionContext: optionContext, specialArgs: specialArgs, lookup: lookup)
179+
override public func commandLineFromTemplate(_ cbc: CommandBuildContext, _ delegate: any TaskGenerationDelegate, optionContext: (any DiscoveredCommandLineToolSpecInfo)?, specialArgs: [String] = [], lookup: ((MacroDeclaration) -> MacroExpression?)? = nil) async -> [CommandLineArgument] {
180+
var commandLine = await super.commandLineFromTemplate(cbc, delegate, optionContext: optionContext, specialArgs: specialArgs, lookup: lookup)
181181
guard let primaryOutput = evaluatedOutputs(cbc, delegate)?.first else {
182182
delegate.error("Unable to determine primary output for storyboard compilation")
183183
return []

Sources/SWBApplePlatform/MiGCompiler.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public final class MigCompilerSpec : CompilerSpec, SpecIdentifierType, @unchecke
3838
return cbc.scope.migExecutablePath().str
3939
}
4040

41-
public override func resolveExecutablePath(_ cbc: CommandBuildContext, _ path: Path) -> Path {
41+
public override func resolveExecutablePath(_ cbc: CommandBuildContext, _ path: Path, delegate: any CoreClientTargetDiagnosticProducingDelegate) async -> Path {
4242
return resolveExecutablePath(cbc.producer, Path(computeExecutablePath(cbc)))
4343
}
4444

Sources/SWBApplePlatform/OpenCLCompiler.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ final class OpenCLCompilerSpec : CompilerSpec, SpecIdentifierType, GCCCompatible
6969

7070
let executionDescription = "Create \(arch) bitcode for \(filePath.basename)"
7171

72-
var commandLine = [resolveExecutablePath(cbc, Path(openclc)).str]
72+
var commandLine = [await resolveExecutablePath(cbc, Path(openclc), delegate: delegate).str]
7373
commandLine += ["-x", "cl", compilerVersionFlag]
7474
optimizationLevelFlag.map{ commandLine.append($0) }
7575
commandLine += preprocessorDefinitionsFlags
@@ -101,7 +101,7 @@ final class OpenCLCompilerSpec : CompilerSpec, SpecIdentifierType, GCCCompatible
101101

102102
let ruleInfo = ["Compile", filePath.str]
103103

104-
var commandLine = [resolveExecutablePath(cbc, Path(openclc)).str]
104+
var commandLine = [await resolveExecutablePath(cbc, Path(openclc), delegate: delegate).str]
105105
commandLine += ["-x", "cl", compilerVersionFlag]
106106
if scope.evaluate(BuiltinMacros.OPENCL_MAD_ENABLE) {
107107
commandLine.append("-cl-mad-enable")

0 commit comments

Comments
 (0)