Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[main] Enable -user-module-version for 6.0 #7263

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -627,7 +627,12 @@ public final class SwiftTargetBuildDescription {
}

// Pass `-user-module-version` for versioned packages that aren't pre-releases.
if let version = package.manifest.version, version.prereleaseIdentifiers.isEmpty, version.buildMetadataIdentifiers.isEmpty, toolsVersion >= .vNext {
if
let version = package.manifest.version,
version.prereleaseIdentifiers.isEmpty &&
version.buildMetadataIdentifiers.isEmpty &&
toolsVersion >= .v5_11
MaxDesiatov marked this conversation as resolved.
Show resolved Hide resolved
{
args += ["-user-module-version", version.description]
}

Expand Down