mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-28 04:00:06 +08:00
Define __ARM_EABI__ and __ARMEL__ when applicable
This commit is contained in:
parent
5919da6f05
commit
3676f61983
4
libtcc.c
4
libtcc.c
@ -942,10 +942,14 @@ LIBTCCAPI TCCState *tcc_new(void)
|
||||
tcc_define_symbol(s, "__arm", NULL);
|
||||
tcc_define_symbol(s, "arm", NULL);
|
||||
tcc_define_symbol(s, "__APCS_32__", NULL);
|
||||
tcc_define_symbol(s, "__ARMEL__", NULL);
|
||||
#if defined(TCC_ARM_EABI)
|
||||
tcc_define_symbol(s, "__ARM_EABI__", NULL);
|
||||
#if defined(TCC_ARM_HARDFLOAT)
|
||||
tcc_define_symbol(s, "__ARM_PCS_VFP", NULL);
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef TCC_TARGET_PE
|
||||
tcc_define_symbol(s, "_WIN32", NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user