Unified · Split
| @@ -10,7 +10,7 @@ echo>>..\config.h #define CONFIG_SYSROOT "" · 9 unmodified lines | |||
| 10 | @if _%PROCESSOR_ARCHITECTURE%_==_AMD64_ goto x86_64 | 10 | @if _%PROCESSOR_ARCHITECTURE%_==_AMD64_ goto x86_64 |
| 11 | 11 | ||
| 12 | @set target=-DTCC_TARGET_PE -DTCC_TARGET_I386 | 12 | @set target=-DTCC_TARGET_PE -DTCC_TARGET_I386 |
| 13 | @set CC=gcc -Os -s | 13 | @set CC=gcc -Os -s -fno-strict-aliasing |
| 14 | @set AR=ar | 14 | @set AR=ar |
| 15 | @set P=32 | 15 | @set P=32 |
| 16 | @goto tools | 16 | @goto tools |
| @@ -18,7 +18,7 @@ echo>>..\config.h #define CONFIG_SYSROOT "" · 1 unmodified line | |||
| 18 | :x86_64 | 18 | :x86_64 |
| 19 | @set target=-DTCC_TARGET_PE -DTCC_TARGET_X86_64 | 19 | @set target=-DTCC_TARGET_PE -DTCC_TARGET_X86_64 |
| 20 | @rem mingw 64 has an ICE with -Os | 20 | @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 |
| 22 | @set AR=x86_64-pc-mingw32-ar | 22 | @set AR=x86_64-pc-mingw32-ar |
| 23 | @set P=64 | 23 | @set P=64 |
| 24 | 24 | ||
| @@ -29,11 +29,12 @@ echo>>..\config.h #define CONFIG_SYSROOT "" · 4 unmodified lines | |||
| 29 | :libtcc | 29 | :libtcc |
| 30 | if not exist libtcc\nul mkdir libtcc | 30 | if not exist libtcc\nul mkdir libtcc |
| 31 | copy ..\libtcc.h libtcc\libtcc.h | 31 | 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 |
| 33 | %AR% rcs libtcc/libtcc.a libtcc.o | 33 | %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 | :tcc | 36 | :tcc |
| 36 | %CC% %target% -fno-strict-aliasing ../tcc.c -o tcc.exe -ltcc -Llibtcc | 37 | %CC% %target% ../tcc.c -o tcc.exe -ltcc -Llibtcc |
| 37 | 38 | ||
| 38 | :copy_std_includes | 39 | :copy_std_includes |
| 39 | copy ..\include\*.h include | 40 | copy ..\include\*.h include |