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
1010 @if _%PROCESSOR_ARCHITECTURE%_==_AMD64_ goto x86_64
1111
1212 @set target=-DTCC_TARGET_PE -DTCC_TARGET_I386
13−@set CC=gcc -Os -s
13+@set CC=gcc -Os -s -fno-strict-aliasing
1414 @set AR=ar
1515 @set P=32
1616 @goto tools
@@ -18,7 +18,7 @@ echo>>..\config.h #define CONFIG_SYSROOT "" · 1 unmodified line
1818 :x86_64
1919 @set target=-DTCC_TARGET_PE -DTCC_TARGET_X86_64
2020 @rem mingw 64 has an ICE with -Os
21−@set CC=x86_64-pc-mingw32-gcc -O0 -s
21+@set CC=x86_64-pc-mingw32-gcc -O0 -s -fno-strict-aliasing
2222 @set AR=x86_64-pc-mingw32-ar
2323 @set P=64
2424
@@ -29,11 +29,12 @@ echo>>..\config.h #define CONFIG_SYSROOT "" · 4 unmodified lines
2929 :libtcc
3030 if not exist libtcc\nul mkdir libtcc
3131 copy ..\libtcc.h libtcc\libtcc.h
32−%CC% %target% -fno-strict-aliasing -DONE_SOURCE ../libtcc.c -c -o libtcc.o
32+%CC% %target% -DONE_SOURCE ../libtcc.c -c -o libtcc.o
3333 %AR% rcs libtcc/libtcc.a libtcc.o
34+%CC% %target% -shared -DLIBTCC_AS_DLL -DONE_SOURCE ../libtcc.c -o libtcc/libtcc.dll
3435
3536 :tcc
36−%CC% %target% -fno-strict-aliasing ../tcc.c -o tcc.exe -ltcc -Llibtcc
37+%CC% %target% ../tcc.c -o tcc.exe -ltcc -Llibtcc
3738
3839 :copy_std_includes
3940 copy ..\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