History

dll build + small adjustments

Gabriel Corneanu committed 15 years ago

Commit fd0cea81 parent e844fb11 file · +5 −4Browse files

Unified · Split

win32/build-tcc.bat+5−4
@@ -10,7 +10,7 @@ echo>>..\config.h #define CONFIG_SYSROOT "" · 9 unmodified lines
10@if _%PROCESSOR_ARCHITECTURE%_==_AMD64_ goto x86_6410@if _%PROCESSOR_ARCHITECTURE%_==_AMD64_ goto x86_64
11 11
12@set target=-DTCC_TARGET_PE -DTCC_TARGET_I38612@set target=-DTCC_TARGET_PE -DTCC_TARGET_I386
13@set CC=gcc -Os -s13@set CC=gcc -Os -s -fno-strict-aliasing
14@set AR=ar14@set AR=ar
15@set P=3215@set P=32
16@goto tools16@goto tools
@@ -18,7 +18,7 @@ echo>>..\config.h #define CONFIG_SYSROOT "" · 1 unmodified line
18:x86_6418:x86_64
19@set target=-DTCC_TARGET_PE -DTCC_TARGET_X86_6419@set target=-DTCC_TARGET_PE -DTCC_TARGET_X86_64
20@rem mingw 64 has an ICE with -Os20@rem mingw 64 has an ICE with -Os
21@set CC=x86_64-pc-mingw32-gcc -O0 -s21@set CC=x86_64-pc-mingw32-gcc -O0 -s -fno-strict-aliasing
22@set AR=x86_64-pc-mingw32-ar22@set AR=x86_64-pc-mingw32-ar
23@set P=6423@set P=64
24 24
@@ -29,11 +29,12 @@ echo>>..\config.h #define CONFIG_SYSROOT "" · 4 unmodified lines
29:libtcc29:libtcc
30if not exist libtcc\nul mkdir libtcc30if not exist libtcc\nul mkdir libtcc
31copy ..\libtcc.h libtcc\libtcc.h31copy ..\libtcc.h libtcc\libtcc.h
32%CC% %target% -fno-strict-aliasing -DONE_SOURCE ../libtcc.c -c -o libtcc.o32%CC% %target% -DONE_SOURCE ../libtcc.c -c -o libtcc.o
33%AR% rcs libtcc/libtcc.a libtcc.o33%AR% rcs libtcc/libtcc.a libtcc.o
34%CC% %target% -shared -DLIBTCC_AS_DLL -DONE_SOURCE ../libtcc.c -o libtcc/libtcc.dll
34 35
35:tcc36:tcc
36%CC% %target% -fno-strict-aliasing ../tcc.c -o tcc.exe -ltcc -Llibtcc37%CC% %target% ../tcc.c -o tcc.exe -ltcc -Llibtcc
37 38
38:copy_std_includes39:copy_std_includes
39copy ..\include\*.h include40copy ..\include\*.h include

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