|
From: | Christian Jullien |
Subject: | [Tinycc-devel] Building native tcc for Windows |
Date: | Sun, 8 Apr 2018 09:32:25 +0200 |
Hi all, few months ago, Grischka took the time (and had the patience) to explain me how to build native tcc Windows from Cygwin. (see thread [Tinycc-devel] Push reproducible builds script? (for windows)) I recognize it works. That’s’ why I accepted to remove the Makefile I wrote in win32 directory. However, I still find my Makefile very useful to build, test and generate tar.gz. I use it to test almost every commit to check for potential regressions. I’ve just made this side project https://sourceforge.net/projects/wintcc/ for those who liked this Makefile. Here is how you can get a native Windows tcc using Cygwin+gcc bootstrapping. $ git clone git://repo.or.cz/tinycc.git Cloning into 'tinycc'... $ cd tinycc/win32 # # Get Makefile for cygwin from wintcc project # $ svn cat svn://svn.code.sf.net/p/wintcc/svn/cygwin/Makefile > Makefile $ make Bootstrapping 32bits and 64bits tools with gcc -m64 Building lib/libtcc1-32.a with tcc -m32 Building lib/libtcc1-64.a with tcc -m64 Rebuild using tcc itself - default 64bits 252 -rwxrwxr-x+ 1 me None 257536 Apr 8 08:02 i386-win32-tcc.exe 320 -rwxrwxr-x+ 1 me None 325120 Apr 8 08:02 tcc.exe 320 -rwxrwxr-x+ 1 me None 325120 Apr 8 08:02 x86_64-win32-tcc.exe $ make test make[1]: Entering directory '/cygdrive/f/tinycc/tests' ------------ hello-exe ------------ /cygdrive/f/tinycc/win32/tcc ../examples/ex1.c -o hello && ./hello || (set -x; ../tcc -vv; ldd ../tcc; exit 1) Hello World ------------ hello-run ------------ /cygdrive/f/tinycc/win32/tcc -run ../examples/ex1.c || (set -x; ../tcc -vv; ldd ../tcc; exit 1) Hello World ... PPTest 19 ... PPTest 20 ... PPTest 21 ... PPTest pp-counter ... $ make tarball $ ls -ls tcc-0.9.27-x86_64-win32.tar.gz 712 -rw-rw-r--+ 1 me None 725827 Apr 8 09:04 tcc-0.9.27-x86_64-win32.tar.gz You can install tcc-0.9.27-x86_64-win32.tar.gz standalone tcc native compiler on any Windows machine. |
[Prev in Thread] | Current Thread | [Next in Thread] |