summaryrefslogtreecommitdiff
path: root/core/cortex-m0/config_core.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/cortex-m0/config_core.h')
-rw-r--r--core/cortex-m0/config_core.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/cortex-m0/config_core.h b/core/cortex-m0/config_core.h
index 63e6da8972..9ef52f848a 100644
--- a/core/cortex-m0/config_core.h
+++ b/core/cortex-m0/config_core.h
@@ -12,11 +12,12 @@
/*
* Emulate the CLZ/CTZ instructions since the CPU core is lacking support.
+ * When building with clang, we rely on compiler_rt to provide this support.
*/
-#ifndef USE_LLVM_COMPILER_RT
+#ifndef __clang__
#define CONFIG_SOFTWARE_CLZ
#define CONFIG_SOFTWARE_CTZ
-#endif /* USE_LLVM_COMPILER_RT */
+#endif /* __clang__ */
#define CONFIG_ASSEMBLY_MULA32