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
12 12
13@if _%PROCESSOR_ARCHITEW6432%_==_AMD64_ goto x86_6413@if _%PROCESSOR_ARCHITEW6432%_==_AMD64_ goto x86_64
14@if _%PROCESSOR_ARCHITECTURE%_==_AMD64_ goto x86_6414@if _%PROCESSOR_ARCHITECTURE%_==_AMD64_ goto x86_64
15
16:i386
17@set AS=.\tcc -c
18@goto tools15@goto tools
19 16
20:x86_6417: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
25echo>>..\config.h #define TCC_TARGET_X86_64 118echo>>..\config.h #define TCC_TARGET_X86_64 1
19@set P=x86_64-pc-mingw32-
26@goto tools20@goto tools
27 21
28:tools22:tools
@@ -45,12 +39,20 @@ copy ..\libtcc.h libtcc\libtcc.h · 16 unmodified lines
45.\tcc -c lib/dllcrt1.c39.\tcc -c lib/dllcrt1.c
46.\tcc -c lib/dllmain.c40.\tcc -c lib/dllmain.c
47.\tcc -c ../lib/libtcc1.c41.\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
45tiny_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' !!!
48.\tcc -o tmp.s -E lib/chkstk.S50.\tcc -o tmp.s -E lib/chkstk.S
49%AS% -o chkstk.o tmp.s51yasm -p gnu -f elf64 -o chkstk.o tmp.s
50.\tcc -o tmp.s -E ../lib/alloca86.S52.\tcc -o tmp.s -E ../lib/alloca86_64.S
51%AS% -o alloca86.o tmp.s53yasm -p gnu -f elf64 -o alloca86_64.o tmp.s
52del tmp.s54del tmp.s
53tiny_libmaker lib/libtcc1%X64%.a crt1.o wincrt1.o dllcrt1.o dllmain.o chkstk.o libtcc1.o alloca86.o55tiny_libmaker lib/libtcc1.a crt1.o wincrt1.o dllcrt1.o dllmain.o chkstk.o libtcc1.o alloca86_64.o
54 56
55:cleanup57:cleanup
56del *.o58del *.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