diff options
| author | seyko <seyko2@gmail.com> | 2015-03-03 22:30:24 +0300 |
|---|---|---|
| committer | seyko <seyko2@gmail.com> | 2015-03-03 22:30:24 +0300 |
| commit | 859ce5e47f1d18f8c7e5b432b7b2dc07d25d817a (patch) | |
| tree | 938062a5eef084d2eb998e269302bc39ee58f34e | |
| parent | 2e6626a4b38088770fe908b1261e8234590f3165 (diff) | |
| download | tinycc-859ce5e47f1d18f8c7e5b432b7b2dc07d25d817a.tar.gz tinycc-859ce5e47f1d18f8c7e5b432b7b2dc07d25d817a.tar.bz2 | |
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
| -rw-r--r-- | tcc.c | 26 |
1 files changed, 10 insertions, 16 deletions
@@ -39,35 +39,29 @@ static void display_info(TCCState *s, int what) printf("tcc version %s (" #ifdef TCC_TARGET_I386 "i386" -# ifdef TCC_TARGET_PE - " Win32" -# endif #elif defined TCC_TARGET_X86_64 "x86-64" -# ifdef TCC_TARGET_PE - " Win64" -# endif +#elif defined TCC_TARGET_C67 + "C67" #elif defined TCC_TARGET_ARM "ARM" # ifdef TCC_ARM_HARDFLOAT " Hard Float" # endif -# ifdef TCC_TARGET_PE - " WinCE" -# endif #elif defined TCC_TARGET_ARM64 "AArch64" # ifdef TCC_ARM_HARDFLOAT " Hard Float" # endif -# ifdef TCC_TARGET_PE - " WinCE" -# endif #endif -#ifndef TCC_TARGET_PE -# ifdef __linux - " Linux" -# endif +#ifdef TCC_TARGET_PE + ", mingw" +#else + #ifdef __linux + ", Linux" + #else + ", Unknown" + #endif #endif ")\n", TCC_VERSION); break; |
