mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Revert "[Basic] Limit version::getCompilerversion to major + minor only"
This reverts commit 17af078378.
This commit is contained in:
@@ -343,10 +343,11 @@ std::string getCompilerVersion() {
|
||||
std::string buf;
|
||||
llvm::raw_string_ostream OS(buf);
|
||||
|
||||
// TODO: This should print SWIFT_COMPILER_VERSION when
|
||||
// available, but to do that we need to switch from
|
||||
// llvm::VersionTuple to swift::Version.
|
||||
OS << SWIFT_VERSION_STRING;
|
||||
#if defined(SWIFT_COMPILER_VERSION)
|
||||
OS << SWIFT_COMPILER_VERSION;
|
||||
#else
|
||||
OS << SWIFT_VERSION_STRING;
|
||||
#endif
|
||||
|
||||
return OS.str();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user