aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tcc.h b/tcc.h
index 8bca9ae..4e88782 100644
--- a/tcc.h
+++ b/tcc.h
@@ -105,6 +105,14 @@
#define TCC_TARGET_I386
#endif
+#if defined (TCC_TARGET_ARM) && !defined(TCC_ARM_VERSION)
+ #ifdef TCC_ARM_HARDFLOAT
+ #define TCC_ARM_VERSION 7
+ #else
+ #define TCC_ARM_VERSION 4
+ #endif
+#endif
+
#if !defined(TCC_UCLIBC) && !defined(TCC_TARGET_ARM) && \
!defined(TCC_TARGET_C67) && !defined(TCC_TARGET_X86_64)
#define CONFIG_TCC_BCHECK /* enable bound checking code */