aboutsummaryrefslogtreecommitdiff
path: root/win32/tools
Commit message (Collapse)AuthorAgeFilesLines
* tcctools.c: integrate tiny_libmaker/_impdefgrischka2017-02-182-527/+0
| | | | | | | | | | | | | | usage: tcc -ar [rcsv] lib files... tcc -impdef lib.dll [-v] [-o lib.def] also: - support more files with -c: tcc -c f1.c f2.c ... - fix a bug which caused tcc f1.c f2.S to produce no asm - allow tcc -ar @listfile too - change prototype: _void_ tcc_set_options(...) - apply -Wl,-whole-archive when a librariy is given as libxxx.a also (not just for -lxxx)
* Rein in unintended external functions on Windows.Jean-Claude Beaudoin2016-09-271-2/+2
|
* tiny_libmaker: fix a commentAvi Halachmi (:avih)2016-06-191-1/+1
|
* tiny_libmaker: more robust arguments interpretationAvi Halachmi (:avih)2016-06-191-34/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Syntax is now much closer to gnu ar, but still supports whatever was supported before, with the following exceptions (which gnu ar has too): - lib is now mandatory (was optional and defaulted to ar_test.a before). - Path cannot start with '-' (but ./-myfile.o is OK). - Unlike gnu ar, modes are still optional (as before). - Now supports also (like gnu ar): - First argument as options doesn't have to start with '-', later options do. - Now supports mode v (verbose) with same output format as gnu ar. - Any names for lib/objs (were limited to .a/.o - broke cmake on windows). - Now explicitly fail on options which would be destructive for the user. - Now doesn't get confused by options between file arguments. - Still ignores other unknown options - as before. - Now doesn't read out-of-bounds if an option is one char. - As a result, cmake for windows can now use tiny_libmaker as ar, and configure can also detect tiny_libmaker as a valid ar (both couldn't before). Ignoring all options could previously cause to misinterpret the mode in a destructive way, e.g. if the user wanted to do something with an existing archive (such as p - print, or x - extract, etc), then it would instead just delete (re-create) the archive. Modes which can be destructive if ignored now explicitly fail. These include [habdioptxN]. Note that 'h' can be ignored, but this way we also implicitly print the usage for -h/--help. The .a/.o name limitations previously resulted in complete failure on some cases, such as cmake on windows which uses <filename>.obj and <libname>.lib . Fixed: e.g. 'tiny_libmaker r x.a x.o' was reading out of bounds [-1] for 'r'.
* Revert all of my changes to directories & codingstyle.gus knight2015-07-291-1/+1
|
* Reorganize the source tree.gus knight2015-07-271-1/+1
| | | | | | | | | | * Documentation is now in "docs". * Source code is now in "src". * Misc. fixes here and there so that everything still works. I think I got everything in this commit, but I only tested this on Linux (Make) and Windows (CMake), so I might've messed something up on other platforms...
* win64: fix resource file supportgrischka2014-08-011-3/+9
|
* tiny_impdef: remove artificial length restriction.minux2014-04-111-1/+1
|
* libtcc: new LIBTCCAPI tcc_set_options(TCCState*, const char*str)grischka2013-02-122-18/+19
| | | | | | | | | | | | | | | | | | | This replaces -> use instead: ----------------------------------- - tcc_set_linker -> tcc_set_options(s, "-Wl,..."); - tcc_set_warning -> tcc_set_options(s, "-W..."); - tcc_enable_debug -> tcc_set_options(s, "-g"); parse_args is moved to libtcc.c (now tcc_parse_args). Also some cleanups: - reorder TCCState members - add some comments here and there - do not use argv's directly, make string copies - use const char* in tcc_set_linker - tccpe: use fd instead of fp tested with -D MEM_DEBUG: 0 bytes left
* tcc -vv/--print-search-dirs: print more infogrischka2013-02-101-34/+28
| | | | | | | | | | | | | | 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
* tccpe: cleanup ELFW() macros etc.grischka2011-07-141-1/+11
|
* tiny_libmaker: strip leading directory to avoid buffer overrungrischka2010-12-041-3/+13
| | | | | | The arhdr.ar_name has 16 bytes. Long object names esp. with leading directory were causing a buffer overrun which was detected by glibc.
* build: remove #include "config.h" from target dependent filesgrischka2010-11-262-2/+0
| | | | This is to make cross build of libtcc1.a easier.
* Explicit license in tiny_libmaker.cThomas Preud'homme2010-10-071-2/+14
| | | | | | Explicit the license in tiny_libmaker.c to LGPLv2. Confirmation of the license of this file can be found at http://lists.nongnu.org/archive/html/tinycc-devel/2010-07/msg00004.html
* tinylibmaker: On error situation tempfile was not removedunknown2010-04-031-0/+3
|
* tccpe: improve dllimport/export and use for tcc_add_symbolgrischka2010-01-141-19/+21
|
* tccpe: load dll on the flygrischka2009-07-181-88/+95
|
* win64: update tiny_impdef, tiny_libmaker (Elf64)grischka2009-07-182-383/+144
|
* fix build with msvcgrischka2009-05-111-15/+6
|
* tiny_libmaker: fix function array overflowgrischka2009-04-181-6/+6
|
* Checkin tiny_libmaker (ar replacement) by Timovj Lahdegrischka2008-03-082-0/+712