From: Thomas Preud'homme Date: Thu, 14 Feb 2013 15:40:16 +0000 (+0100) Subject: Add arm ABI detection in conftest.c X-Git-Tag: release_0_9_26~9 X-Git-Url: https://repo.or.cz/w/tinycc.git/commitdiff_plain/b4656f3191a9e26aa99a42f3b379a5e2c1451d51 Add arm ABI detection in conftest.c --- diff --git a/conftest.c b/conftest.c index 9eae11a5..53c181c3 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