Add the distribution tag to -print-target-info

Ideally this would also update the `--version` output to be overridden
by `SWIFT_TOOLCHAIN_VERSION`, but unfortunately various tools rely on
the current format (eg. swift-build).
This commit is contained in:
Ben Barham
2025-05-21 17:11:32 -07:00
parent f7529eae86
commit 3c098782b4
7 changed files with 24 additions and 23 deletions

View File

@@ -171,11 +171,6 @@ std::string getSwiftFullVersion(Version effectiveLanguageVersion =
/// this Swift was built.
StringRef getSwiftRevision();
/// Is the running compiler built with a version tag for distribution?
/// When true, \c version::getCurrentCompilerVersion returns a valid version
/// and \c getCurrentCompilerTag returns the version tuple in string format.
bool isCurrentCompilerTagged();
/// Retrieves the distribution tag of the running compiler, if any.
StringRef getCurrentCompilerTag();