mirror of
https://github.com/frida/tinycc
synced 2025-01-12 14:49:18 +03:00
Add arm ABI detection in conftest.c
This commit is contained in:
parent
b1a8233562
commit
b4656f3191
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 New Issue
Block a user