History

win64: fix bat

grischka committed 17 years ago

Commit 697f9e31 parent b08dfb81 file · +13 −11Browse files

Unified · Split

win32/build-tcc.bat+13−11
@@ -12,17 +12,11 @@ echo>>..\config.h #define CONFIG_SYSROOT "" · 11 unmodified lines
1212
1313 @if _%PROCESSOR_ARCHITEW6432%_==_AMD64_ goto x86_64
1414 @if _%PROCESSOR_ARCHITECTURE%_==_AMD64_ goto x86_64
15−
16−:i386
17−@set AS=.\tcc -c
1815 @goto tools
1916
2017 :x86_64
21−@set P=x86_64-pc-mingw32-
22−@set X64=-x64
23−@rem !!! currently TinyCC doesn't 64bit asm. Need 'yasm' !!!
24−@set AS=yasm -p gnu -f elf64
2518 echo>>..\config.h #define TCC_TARGET_X86_64 1
19+@set P=x86_64-pc-mingw32-
2620 @goto tools
2721
2822 :tools
@@ -45,12 +39,20 @@ copy ..\libtcc.h libtcc\libtcc.h · 16 unmodified lines
4539 .\tcc -c lib/dllcrt1.c
4640 .\tcc -c lib/dllmain.c
4741 .\tcc -c ../lib/libtcc1.c
42+@if not x%P%==x goto asm64
43+.\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
46+@goto cleanup
47+
48+:asm64
49+@rem !!! currently TinyCC doesn't 64bit asm. Need 'yasm' !!!
4850 .\tcc -o tmp.s -E lib/chkstk.S
49−%AS% -o chkstk.o tmp.s
50−.\tcc -o tmp.s -E ../lib/alloca86.S
51−%AS% -o alloca86.o tmp.s
51+yasm -p gnu -f elf64 -o chkstk.o tmp.s
52+.\tcc -o tmp.s -E ../lib/alloca86_64.S
53+yasm -p gnu -f elf64 -o alloca86_64.o tmp.s
5254 del tmp.s
53−tiny_libmaker lib/libtcc1%X64%.a crt1.o wincrt1.o dllcrt1.o dllmain.o chkstk.o libtcc1.o alloca86.o
55+tiny_libmaker lib/libtcc1.a crt1.o wincrt1.o dllcrt1.o dllmain.o chkstk.o libtcc1.o alloca86_64.o
5456
5557 :cleanup
5658 del *.o

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t