diff options
| author | grischka <grischka> | 2009-12-19 22:22:43 +0100 |
|---|---|---|
| committer | grischka <grischka> | 2009-12-19 22:22:43 +0100 |
| commit | 7fa712e00c5221d9373e8f8fa073e9e6fa064da1 (patch) | |
| tree | 21c5acbfcb4ddaa6d61d30fe79cfaece3ff7b5d9 /win32 | |
| parent | 8bbde91f62291cb0383c2406ae6123be903c944b (diff) | |
| download | tinycc-7fa712e00c5221d9373e8f8fa073e9e6fa064da1.tar.gz tinycc-7fa712e00c5221d9373e8f8fa073e9e6fa064da1.tar.bz2 | |
win32: enable bounds checker & exception handler
exception handler borrowed from k1w1. Thanks.
Diffstat (limited to 'win32')
| -rw-r--r-- | win32/build-tcc.bat | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/win32/build-tcc.bat b/win32/build-tcc.bat index b706db4..cb2721a 100644 --- a/win32/build-tcc.bat +++ b/win32/build-tcc.bat @@ -31,8 +31,10 @@ copy ..\libtcc.h libtcc\libtcc.h :tcc %P%gcc -Os -fno-strict-aliasing ../tcc.c -o tcc.exe -s -DTCC_USE_LIBTCC -ltcc -Llibtcc -:libtcc1.a +:copy_std_includes copy ..\include\*.h include + +:libtcc1.a .\tcc -c lib/crt1.c .\tcc -c lib/wincrt1.c .\tcc -c lib/dllcrt1.c @@ -40,5 +42,15 @@ copy ..\include\*.h include .\tcc -c ../lib/libtcc1.c .\tcc -c lib/chkstk.S .\tcc -c ../lib/alloca86%S%.S -tiny_libmaker lib/libtcc1.a crt1.o wincrt1.o dllcrt1.o dllmain.o chkstk.o libtcc1.o alloca86%S%.o + +@set LIBFILES=crt1.o wincrt1.o dllcrt1.o dllmain.o chkstk.o libtcc1.o alloca86%S%.o + +@if not _%P%==_ goto makelib +.\tcc -c ../lib/alloca86-bt%S%.S +.\tcc -c ../lib/bcheck.c + +@set LIBFILES=%LIBFILES% alloca86-bt%S%.o bcheck.o + +:makelib +tiny_libmaker lib/libtcc1.a %LIBFILES% del *.o |
