From a26bf10de39b48cf3f447edb1148f0e95349edf6 Mon Sep 17 00:00:00 2001 From: grischka Date: Sat, 21 Nov 2009 22:18:45 +0100 Subject: [PATCH] win64: Use tcc's own assembler MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now that we have it thanks to Mr. Féret --- win32/build-tcc.bat | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/win32/build-tcc.bat b/win32/build-tcc.bat index de042a8..5226d7a 100644 --- a/win32/build-tcc.bat +++ b/win32/build-tcc.bat @@ -17,6 +17,7 @@ echo>>..\config.h #define CONFIG_SYSROOT "" :x86_64 echo>>..\config.h #define TCC_TARGET_X86_64 1 @set P=x86_64-pc-mingw32- +@set S=_64 @goto tools :tools @@ -39,14 +40,13 @@ copy ..\libtcc.h libtcc\libtcc.h .\tcc -c lib/dllcrt1.c .\tcc -c lib/dllmain.c .\tcc -c ../lib/libtcc1.c -@if not x%P%==x goto asm64 +@rem if not x%P%==x goto use_yasm .\tcc -c lib/chkstk.S -.\tcc -c ../lib/alloca86.S -tiny_libmaker lib/libtcc1.a crt1.o wincrt1.o dllcrt1.o dllmain.o chkstk.o libtcc1.o alloca86.o +.\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 @goto cleanup -:asm64 -@rem !!! currently TinyCC doesn't 64bit asm. Need 'yasm' !!! +:use_yasm .\tcc -o tmp.s -E lib/chkstk.S yasm -p gnu -f elf64 -o chkstk.o tmp.s .\tcc -o tmp.s -E ../lib/alloca86_64.S