We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c5de02f + 17af078 commit dbf388cCopy full SHA for dbf388c
lib/Basic/Version.cpp
@@ -343,11 +343,10 @@ std::string getCompilerVersion() {
343
std::string buf;
344
llvm::raw_string_ostream OS(buf);
345
346
-#if defined(SWIFT_COMPILER_VERSION)
347
- OS << SWIFT_COMPILER_VERSION;
348
-#else
349
- OS << SWIFT_VERSION_STRING;
350
-#endif
+ // 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;
351
352
return OS.str();
353
}
0 commit comments