diff options
| author | Thomas Preud'homme <robotux@celest.fr> | 2013-02-14 16:40:16 +0100 |
|---|---|---|
| committer | Thomas Preud'homme <robotux@celest.fr> | 2013-02-14 16:40:16 +0100 |
| commit | b4656f3191a9e26aa99a42f3b379a5e2c1451d51 (patch) | |
| tree | bd214f345d063e154e209f0ca3b4d3454d04e2b3 /conftest.c | |
| parent | b1a82335626fa504b83a4eb2d1373a5e4ee5cf4f (diff) | |
| download | tinycc-b4656f3191a9e26aa99a42f3b379a5e2c1451d51.tar.gz tinycc-b4656f3191a9e26aa99a42f3b379a5e2c1451d51.tar.bz2 | |
Add arm ABI detection in conftest.c
Diffstat (limited to 'conftest.c')
| -rw-r--r-- | conftest.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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 |
