tcc: re-enable correct option -r support
Forgot about it. It allows to compile several
sources (and other .o's) to one single .o file;
tcc -r -o all.o f1.c f2.c f3.S o4.o ...
Also:
- option -fold-struct-init-code removed, no effect anymore
- (tcc_)set_environment() moved to tcc.c
- win32/lib/(win)crt1 minor fix & add dependency
- debug line output for asm (tcc -c -g xxx.S) enabled
- configure/Makefiles: x86-64 -> x86_64 changes
- README: cleanup
This commit is contained in:
@ -73,15 +73,18 @@ int _runtmain(int argc, /* as tcc passed in */ char **argv)
|
||||
_startupinfo start_info = {0};
|
||||
|
||||
__tgetmainargs(&wargc, &wargv, &wenv, _dowildcard, &start_info);
|
||||
/* may be wrong when tcc has received wildcards (*.c) */
|
||||
if (argc < wargc)
|
||||
wargv += wargc - argc;
|
||||
else
|
||||
argc = wargc;
|
||||
#define argv wargv
|
||||
#endif
|
||||
|
||||
#ifdef __i386
|
||||
_controlfp(_PC_53, _MCW_PC);
|
||||
#endif
|
||||
return _tmain(argc, argv, NULL);
|
||||
return _tmain(argc, argv, _tenviron);
|
||||
}
|
||||
|
||||
// =============================================
|
||||
|
||||
@ -336,6 +336,10 @@ GetWindow
|
||||
GetWindowContextHelpId
|
||||
GetWindowDC
|
||||
GetWindowInfo
|
||||
GetWindowLongPtrA
|
||||
GetWindowLongPtrW
|
||||
SetWindowLongPtrA
|
||||
SetWindowLongPtrW
|
||||
GetWindowLongA
|
||||
GetWindowLongW
|
||||
GetWindowModuleFileNameA
|
||||
|
||||
@ -80,6 +80,8 @@ int _runtwinmain(int argc, /* as tcc passed in */ char **argv)
|
||||
__tgetmainargs(&wargc, &wargv, &wenv, 0, &start_info);
|
||||
if (argc < wargc)
|
||||
wargv += wargc - argc;
|
||||
else
|
||||
argc = wargc;
|
||||
#define argv wargv
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user