summaryrefslogtreecommitdiff
path: root/extmod
diff options
context:
space:
mode:
Diffstat (limited to 'extmod')
-rw-r--r--extmod/modplatform.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/extmod/modplatform.h b/extmod/modplatform.h
index 0c83d7b8c..19246c0fd 100644
--- a/extmod/modplatform.h
+++ b/extmod/modplatform.h
@@ -53,7 +53,13 @@
#define MICROPY_PLATFORM_ARCH ""
#endif
-#if defined(__GNUC__)
+#if defined(__clang__)
+#define MICROPY_PLATFORM_COMPILER \
+ "Clang " \
+ MP_STRINGIFY(__clang_major__) "." \
+ MP_STRINGIFY(__clang_minor__) "." \
+ MP_STRINGIFY(__clang_patchlevel__)
+#elif defined(__GNUC__)
#define MICROPY_PLATFORM_COMPILER \
"GCC " \
MP_STRINGIFY(__GNUC__) "." \