Revert "[Basic] Limit version::getCompilerversion to major + minor only"

This reverts commit 17af078378.
This commit is contained in:
Pavel Yaskevich
2024-11-18 15:11:47 -08:00
parent 7c8000b3a5
commit a44f42ed07

View File

@@ -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();
}