Skip to content

Commit

Permalink
Clean up variable naming, fix CMake filename mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxDesiatov committed Nov 22, 2022
1 parent ecd74b4 commit 13ec06e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Sources/SPMBuildCore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ add_library(SPMBuildCore
BuildSystemCommand.swift
BuildSystemDelegate.swift
BuiltTestProduct.swift
CrossCompilationDestinations.swift
DestinationsBundle.swift
PluginContextSerializer.swift
PluginInvocation.swift
PluginMessages.swift
Expand Down
6 changes: 3 additions & 3 deletions Sources/SPMBuildCore/DestinationsBundle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ private extension ArtifactsArchiveMetadata {
where artifactMetadata.type == .crossCompilationDestination {
var variants = [DestinationsBundle.Variant]()

for variant in artifactMetadata.variants {
for variantMetadata in artifactMetadata.variants {
let destinationJSONPath = try bundlePath
.appending(RelativePath(validating: variant.path))
.appending(RelativePath(validating: variantMetadata.path))
.appending(component: "destination.json")

guard fileSystem.exists(destinationJSONPath) else {
Expand All @@ -88,7 +88,7 @@ private extension ArtifactsArchiveMetadata {
fromFile: destinationJSONPath, fileSystem: fileSystem
)

variants.append(.init(metadata: variant, destination: destination))
variants.append(.init(metadata: variantMetadata, destination: destination))
} catch {
observabilityScope.emit(
.warning(
Expand Down

0 comments on commit 13ec06e

Please sign in to comment.