Skip to content

Commit 0a73040

Browse files
MaxDesiatovbnbarham
authored andcommitted
Enable -user-module-version for 5.10
This was gated on `.vNext` previously, even though it was introduced before 5.10 branched off. It feels safe to enable this in 5.10.
1 parent f046756 commit 0a73040

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Sources/Build/BuildDescription/SwiftTargetBuildDescription.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,12 @@ public final class SwiftTargetBuildDescription {
605605
}
606606

607607
// Pass `-user-module-version` for versioned packages that aren't pre-releases.
608-
if let version = package.manifest.version, version.prereleaseIdentifiers.isEmpty, version.buildMetadataIdentifiers.isEmpty, toolsVersion >= .vNext {
608+
if
609+
let version = package.manifest.version,
610+
version.prereleaseIdentifiers.isEmpty &&
611+
version.buildMetadataIdentifiers.isEmpty &&
612+
toolsVersion >= .v5_10
613+
{
609614
args += ["-user-module-version", version.description]
610615
}
611616

0 commit comments

Comments
 (0)