We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2519212 commit 0b06164Copy full SHA for 0b06164
1 file changed
src/shim.cpp
@@ -57,8 +57,10 @@ rust::Str geographiclib_version() noexcept {
57
}
58
59
rust::Str compiler_version() noexcept {
60
-#ifdef _MSC_VER
+#if defined(_MSC_VER)
61
return "MSVC " STRINGIFY(_MSC_VER);
62
+#elif defined(__clang__)
63
+ return "clang " STRINGIFY(__clang_major__) "." STRINGIFY(__clang_minor__) "." STRINGIFY(__clang_patchlevel__);
64
#else
65
return "unknown";
66
#endif
0 commit comments