Fixed tests on Windows (including out-of-tree problems)
commite31579b0769e1f9c0947d12e83316d1149307b1a
authorJames Lyon <jamesly0n@hotmail.com>
Wed, 17 Apr 2013 19:32:07 +0000 (17 20:32 +0100)
committerJames Lyon <jamesly0n@hotmail.com>
Wed, 17 Apr 2013 19:32:07 +0000 (17 20:32 +0100)
treee37403a22a234a5b760eb172fd1287eca3b193a6
parent1d673cbfd619995f2762d3e216f8f0f842effc8c
Fixed tests on Windows (including out-of-tree problems)

Modified tcctest.c so that it uses 'double' in place of 'long double'
with MinGW since this is what TCC does, and what Visual C++ does. Added
an option -norunsrc to tcc to allow argv[0] to be set independently of
the compiled source when using tcc -run, which allows tests that rely on
the value of argv[0] to work in out-of-tree builds.

Also added Makefile rules to automatically update out-of-tree build
Makefiles when in-tree Makefiles have changed.
Makefile
lib/Makefile
libtcc.c
tcc.c
tests/Makefile
tests/tcctest.c
tests/tests2/Makefile