Skip to content

Commit 56c7b52

Browse files
committed
Clean up variable naming, fix CMake filename mismatch
1 parent 41a7476 commit 56c7b52

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Sources/SPMBuildCore/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ add_library(SPMBuildCore
1414
BuildSystemCommand.swift
1515
BuildSystemDelegate.swift
1616
BuiltTestProduct.swift
17-
CrossCompilationDestinations.swift
17+
DestinationsBundle.swift
1818
PluginContextSerializer.swift
1919
PluginInvocation.swift
2020
PluginMessages.swift

Sources/SPMBuildCore/DestinationsBundle.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ private extension ArtifactsArchiveMetadata {
6464
where artifactMetadata.type == .crossCompilationDestination {
6565
var variants = [DestinationsBundle.Variant]()
6666

67-
for variant in artifactMetadata.variants {
67+
for variantMetadata in artifactMetadata.variants {
6868
let destinationJSONPath = try bundlePath
69-
.appending(RelativePath(validating: variant.path))
69+
.appending(RelativePath(validating: variantMetadata.path))
7070
.appending(component: "destination.json")
7171

7272
guard fileSystem.exists(destinationJSONPath) else {
@@ -88,7 +88,7 @@ private extension ArtifactsArchiveMetadata {
8888
fromFile: destinationJSONPath, fileSystem: fileSystem
8989
)
9090

91-
variants.append(.init(metadata: variant, destination: destination))
91+
variants.append(.init(metadata: variantMetadata, destination: destination))
9292
} catch {
9393
observabilityScope.emit(
9494
.warning(

0 commit comments

Comments
 (0)