Add arm ABI detection in conftest.c
This commit is contained in:
parent
b1a8233562
commit
b4656f3191
1 changed files with 9 additions and 1 deletions
10
conftest.c
10
conftest.c
|
@ -21,7 +21,15 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Define calling convention and ABI */
|
/* 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__
|
#ifdef __GNU__
|
||||||
# define TRIPLET TRIPLET_ARCH "-" TRIPLET_ABI
|
# define TRIPLET TRIPLET_ARCH "-" TRIPLET_ABI
|
||||||
|
|
Loading…
Reference in a new issue