macos: yet another tbd adjustment
commiteadcee6501440fdf6e685a43a73394ae9ab1662d
authorgrischka <grischka>
Sun, 25 Jul 2021 18:39:11 +0000 (25 20:39 +0200)
committergrischka <grischka>
Sun, 25 Jul 2021 18:55:05 +0000 (25 20:55 +0200)
tree98dc52e2864af5c8f0593024860e1631b5318181
parentecb384ac0c64d04da53f1c6c290051049fe9f287
macos: yet another tbd adjustment

configure:
- re-enable apple M1-arm64
- however, with --cpu=x86_64,  set -arch in CFLAGS/LDFLAGS too
  (assume rosetta)

Makefile:
- re-enable osx cross-test (Please do not disable tests)

tcc.h
- set TCC_IS_NATIVE for TCC_TARGET_MACHO on __APPLE__
- apply TCC_USING_DOUBLE_FOR_LDOUBLE for x86_64-osx

libtcc.c:
- cleanup tcc_add_file_internal()
- new function char *tcc_load_text(int fd); and use it for tbd files
Makefile
configure
libtcc.c
tcc.h
tccgen.c
tccmacho.c
tccpp.c
tests/Makefile