tcc: report Darwin when building for Mach-O binaries.

Somewhat revert c4c3f50, but key off the config, not
host system.

Signed-off-by: Andrei Warkentin <andrey.warkentin@gmail.com>
This commit is contained in:
Andrei Warkentin 2017-03-28 03:28:59 -04:00 committed by Andrei Warkentin
parent 63b2f907bd
commit fb4f57666c

2
tcc.c
View File

@ -159,6 +159,8 @@ static const char version[] =
#endif
#ifdef TCC_TARGET_PE
" Windows"
#elif defined(TCC_TARGET_MACHO)
" Darwin"
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
" FreeBSD"
#else