Skip to content

Commit 0c04134

Browse files
michael-yujijakepetroules
authored andcommitted
fallback to default case instead of listing all of them
1 parent 7057b4b commit 0c04134

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/Build/BuildDescription/ProductBuildDescription.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public final class ProductBuildDescription: SPMBuildCore.ProductBuildDescription
276276
case .macho:
277277
let rpath = self.product.type == .test ? "@loader_path/../../../" : "@loader_path"
278278
args += ["-Xlinker", "-rpath", "-Xlinker", rpath]
279-
case .coff, .xcoff, .wasm:
279+
default:
280280
break
281281
}
282282
}

Sources/Build/BuildPlan/BuildPlan.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ extension BuildParameters {
151151
args = ["-alias", "_\(target.c99name)_main", "_main"]
152152
case .elf:
153153
args = ["--defsym", "main=\(target.c99name)_main"]
154-
case .xcoff, .coff, .wasm:
154+
default:
155155
return nil
156156
}
157157
return args.asSwiftcLinkerFlags()

0 commit comments

Comments
 (0)