diff options
| author | Edmund Grimley Evans <Edmund.Grimley.Evans@gmail.com> | 2015-02-13 18:58:31 +0000 |
|---|---|---|
| committer | Edmund Grimley Evans <Edmund.Grimley.Evans@gmail.com> | 2015-02-23 22:51:03 +0000 |
| commit | b14ef0e24bcb70d70360690130b2bf2a0c8f8d33 (patch) | |
| tree | 11faa1933ceaaba6ffd6975d57eec9d58f4a7cb1 /libtcc.c | |
| parent | 738606dbd5608cb2ed6789beecea40712809c397 (diff) | |
| download | tinycc-b14ef0e24bcb70d70360690130b2bf2a0c8f8d33.tar.gz tinycc-b14ef0e24bcb70d70360690130b2bf2a0c8f8d33.tar.bz2 | |
Add arm64 (AArch64) as a target architecture.
Diffstat (limited to 'libtcc.c')
| -rw-r--r-- | libtcc.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -45,6 +45,9 @@ ST_DATA struct TCCState *tcc_state; #ifdef TCC_TARGET_ARM #include "arm-gen.c" #endif +#ifdef TCC_TARGET_ARM64 +#include "arm64-gen.c" +#endif #ifdef TCC_TARGET_C67 #include "c67-gen.c" #endif @@ -959,6 +962,8 @@ LIBTCCAPI TCCState *tcc_new(void) #else s->float_abi = ARM_SOFTFP_FLOAT; #endif +#elif defined(TCC_TARGET_ARM64) + tcc_define_symbol(s, "__aarch64__", NULL); #endif #ifdef TCC_TARGET_PE @@ -1560,7 +1565,7 @@ static int tcc_set_linker(TCCState *s, const char *option) } else if (link_option(option, "oformat=", &p)) { #if defined(TCC_TARGET_PE) if (strstart("pe-", &p)) { -#elif defined(TCC_TARGET_X86_64) +#elif defined(TCC_TARGET_ARM64) || defined(TCC_TARGET_X86_64) if (strstart("elf64-", &p)) { #else if (strstart("elf32-", &p)) { |
