Now that we have it thanks to Mr. Féret
Unified · Split
| @@ -17,6 +17,7 @@ echo>>..\config.h #define CONFIG_SYSROOT "" · 16 unmodified lines | |||
| 17 | :x86_64 | 17 | :x86_64 |
| 18 | echo>>..\config.h #define TCC_TARGET_X86_64 1 | 18 | echo>>..\config.h #define TCC_TARGET_X86_64 1 |
| 19 | @set P=x86_64-pc-mingw32- | 19 | @set P=x86_64-pc-mingw32- |
| 20 | @set S=_64 | ||
| 20 | @goto tools | 21 | @goto tools |
| 21 | 22 | ||
| 22 | :tools | 23 | :tools |
| @@ -39,14 +40,13 @@ copy ..\libtcc.h libtcc\libtcc.h · 16 unmodified lines | |||
| 39 | .\tcc -c lib/dllcrt1.c | 40 | .\tcc -c lib/dllcrt1.c |
| 40 | .\tcc -c lib/dllmain.c | 41 | .\tcc -c lib/dllmain.c |
| 41 | .\tcc -c ../lib/libtcc1.c | 42 | .\tcc -c ../lib/libtcc1.c |
| 42 | @if not x%P%==x goto asm64 | 43 | @rem if not x%P%==x goto use_yasm |
| 43 | .\tcc -c lib/chkstk.S | 44 | .\tcc -c lib/chkstk.S |
| 44 | .\tcc -c ../lib/alloca86.S | 45 | .\tcc -c ../lib/alloca86%S%.S |
| 45 | tiny_libmaker lib/libtcc1.a crt1.o wincrt1.o dllcrt1.o dllmain.o chkstk.o libtcc1.o alloca86.o | 46 | tiny_libmaker lib/libtcc1.a crt1.o wincrt1.o dllcrt1.o dllmain.o chkstk.o libtcc1.o alloca86%S%.o |
| 46 | @goto cleanup | 47 | @goto cleanup |
| 47 | 48 | ||
| 48 | :asm64 | 49 | :use_yasm |
| 49 | @rem !!! currently TinyCC doesn't 64bit asm. Need 'yasm' !!! | ||
| 50 | .\tcc -o tmp.s -E lib/chkstk.S | 50 | .\tcc -o tmp.s -E lib/chkstk.S |
| 51 | yasm -p gnu -f elf64 -o chkstk.o tmp.s | 51 | yasm -p gnu -f elf64 -o chkstk.o tmp.s |
| 52 | .\tcc -o tmp.s -E ../lib/alloca86_64.S | 52 | .\tcc -o tmp.s -E ../lib/alloca86_64.S |