Report a mingw as a execution environment instead of the
Win32, Win64, WinCE when executing "tcc -v". Example $ ./i386-win-tcc -v tcc version 0.9.26 (i386, mingw) instead of the tcc version 0.9.26 (i386, Win32) There is a cpu info already about bits of the excution environment And display C67 for the TCC_TARGET_C67
This commit is contained in:
parent
2e6626a4b3
commit
859ce5e47f
1 changed files with 10 additions and 16 deletions
26
tcc.c
26
tcc.c
|
@ -39,35 +39,29 @@ static void display_info(TCCState *s, int what)
|
||||||
printf("tcc version %s ("
|
printf("tcc version %s ("
|
||||||
#ifdef TCC_TARGET_I386
|
#ifdef TCC_TARGET_I386
|
||||||
"i386"
|
"i386"
|
||||||
# ifdef TCC_TARGET_PE
|
|
||||||
" Win32"
|
|
||||||
# endif
|
|
||||||
#elif defined TCC_TARGET_X86_64
|
#elif defined TCC_TARGET_X86_64
|
||||||
"x86-64"
|
"x86-64"
|
||||||
# ifdef TCC_TARGET_PE
|
#elif defined TCC_TARGET_C67
|
||||||
" Win64"
|
"C67"
|
||||||
# endif
|
|
||||||
#elif defined TCC_TARGET_ARM
|
#elif defined TCC_TARGET_ARM
|
||||||
"ARM"
|
"ARM"
|
||||||
# ifdef TCC_ARM_HARDFLOAT
|
# ifdef TCC_ARM_HARDFLOAT
|
||||||
" Hard Float"
|
" Hard Float"
|
||||||
# endif
|
# endif
|
||||||
# ifdef TCC_TARGET_PE
|
|
||||||
" WinCE"
|
|
||||||
# endif
|
|
||||||
#elif defined TCC_TARGET_ARM64
|
#elif defined TCC_TARGET_ARM64
|
||||||
"AArch64"
|
"AArch64"
|
||||||
# ifdef TCC_ARM_HARDFLOAT
|
# ifdef TCC_ARM_HARDFLOAT
|
||||||
" Hard Float"
|
" Hard Float"
|
||||||
# endif
|
# endif
|
||||||
# ifdef TCC_TARGET_PE
|
|
||||||
" WinCE"
|
|
||||||
# endif
|
|
||||||
#endif
|
#endif
|
||||||
#ifndef TCC_TARGET_PE
|
#ifdef TCC_TARGET_PE
|
||||||
# ifdef __linux
|
", mingw"
|
||||||
" Linux"
|
#else
|
||||||
# endif
|
#ifdef __linux
|
||||||
|
", Linux"
|
||||||
|
#else
|
||||||
|
", Unknown"
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
")\n", TCC_VERSION);
|
")\n", TCC_VERSION);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue