Skip to content

Commit 482d78e

Browse files
authored
PackageModel: fix Destination.init default arguments (#5953)
`extraCPPFlags` previously had a default value, but after renaming to `extraCXXFlags` in 75877ea this default value was lost. Let's restore it for compatibility with libSwiftPM clients.
1 parent c6faab7 commit 482d78e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/PackageModel/Destination.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public struct Destination: Encodable, Equatable {
113113
binDir: AbsolutePath,
114114
extraCCFlags: [String] = [],
115115
extraSwiftCFlags: [String] = [],
116-
extraCPPFlags: [String]
116+
extraCPPFlags: [String] = []
117117
) {
118118
self.hostTriple = nil
119119
self.targetTriple = target

0 commit comments

Comments
 (0)