tcc -vv/--print-search-dirs: print more info

tests/Makefile:
- print-search-dirs when 'hello' fails
- split off hello-run

win32/include/_mingw.h:
- fix for compatibility with mingw headers
  (While our headers in win32 are from mingw-64 and don't have
  the problem)

tiny_libmaker:
- don't use "dangerous" mktemp
This commit is contained in:
grischka
2013-02-10 00:38:40 +01:00
parent d6d7686b60
commit 8042121d74
7 changed files with 114 additions and 59 deletions

12
tcc.c
View File

@ -508,17 +508,21 @@ int main(int argc, char **argv)
#endif
if (print_search_dirs) {
/* enough for Linux kernel */
printf("install: %s/\n", s->tcc_lib_path);
psd:
tcc_set_output_type(s, TCC_OUTPUT_MEMORY);
tcc_display_info(s, 1);
return 0;
}
if (s->verbose)
printf("tcc version %s\n", TCC_VERSION);
tcc_display_info(s, 0);
if (optind == 0 || nb_files == 0) {
if (optind && s->verbose)
if (optind && s->verbose) {
if (s->verbose == 2)
goto psd;
return 0;
}
help();
return 1;
}