Skip to content

Commit 5f548f1

Browse files
committed
Revert "[Basic] Limit version::getCompilerversion to major + minor only"
This reverts commit 17af078.
1 parent 33bd041 commit 5f548f1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/Basic/Version.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,10 +343,11 @@ std::string getCompilerVersion() {
343343
std::string buf;
344344
llvm::raw_string_ostream OS(buf);
345345

346-
// TODO: This should print SWIFT_COMPILER_VERSION when
347-
// available, but to do that we need to switch from
348-
// llvm::VersionTuple to swift::Version.
349-
OS << SWIFT_VERSION_STRING;
346+
#if defined(SWIFT_COMPILER_VERSION)
347+
OS << SWIFT_COMPILER_VERSION;
348+
#else
349+
OS << SWIFT_VERSION_STRING;
350+
#endif
350351

351352
return OS.str();
352353
}

0 commit comments

Comments
 (0)