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 | 17 | :x86_64 |
| 18 | 18 | echo>>..\config.h #define TCC_TARGET_X86_64 1 |
| 19 | 19 | @set P=x86_64-pc-mingw32- |
| 20 | +@set S=_64 | |
| 20 | 21 | @goto tools |
| 21 | 22 | |
| 22 | 23 | :tools |
| @@ -39,14 +40,13 @@ copy ..\libtcc.h libtcc\libtcc.h · 16 unmodified lines | ||
| 39 | 40 | .\tcc -c lib/dllcrt1.c |
| 40 | 41 | .\tcc -c lib/dllmain.c |
| 41 | 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 | 44 | .\tcc -c lib/chkstk.S |
| 44 | −.\tcc -c ../lib/alloca86.S | |
| 45 | −tiny_libmaker lib/libtcc1.a crt1.o wincrt1.o dllcrt1.o dllmain.o chkstk.o libtcc1.o alloca86.o | |
| 45 | +.\tcc -c ../lib/alloca86%S%.S | |
| 46 | +tiny_libmaker lib/libtcc1.a crt1.o wincrt1.o dllcrt1.o dllmain.o chkstk.o libtcc1.o alloca86%S%.o | |
| 46 | 47 | @goto cleanup |
| 47 | 48 | |
| 48 | −:asm64 | |
| 49 | −@rem !!! currently TinyCC doesn't 64bit asm. Need 'yasm' !!! | |
| 49 | +:use_yasm | |
| 50 | 50 | .\tcc -o tmp.s -E lib/chkstk.S |
| 51 | 51 | yasm -p gnu -f elf64 -o chkstk.o tmp.s |
| 52 | 52 | .\tcc -o tmp.s -E ../lib/alloca86_64.S |