aboutsummaryrefslogtreecommitdiff
path: root/conftest.c
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2013-02-14 16:40:16 +0100
committerThomas Preud'homme <robotux@celest.fr>2013-02-14 16:40:16 +0100
commitb4656f3191a9e26aa99a42f3b379a5e2c1451d51 (patch)
treebd214f345d063e154e209f0ca3b4d3454d04e2b3 /conftest.c
parentb1a82335626fa504b83a4eb2d1373a5e4ee5cf4f (diff)
downloadtinycc-b4656f3191a9e26aa99a42f3b379a5e2c1451d51.tar.gz
tinycc-b4656f3191a9e26aa99a42f3b379a5e2c1451d51.tar.bz2
Add arm ABI detection in conftest.c
Diffstat (limited to 'conftest.c')
-rw-r--r--conftest.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/conftest.c b/conftest.c
index 9eae11a..53c181c 100644
--- a/conftest.c
+++ b/conftest.c
@@ -21,7 +21,15 @@
#endif
/* Define calling convention and ABI */
-#define TRIPLET_ABI "gnu"
+#if defined (__ARM_EABI__)
+# if defined (__ARM_PCS_VFP)
+# define TRIPLET_ABI "gnueabihf"
+# else
+# define TRIPLET_ABI "gnueabi"
+# endif
+#else
+# define TRIPLET_ABI "gnu"
+#endif
#ifdef __GNU__
# define TRIPLET TRIPLET_ARCH "-" TRIPLET_ABI