2021-08-15 08:49:56 +02:00
|
|
|
#!/usr/local/bin/bash
|
|
|
|
|
|
|
|
## should be run in V's main repo folder!
|
|
|
|
|
|
|
|
rm -rf tinycc/
|
|
|
|
rm -rf thirdparty/tcc/
|
|
|
|
|
|
|
|
pushd .
|
|
|
|
|
|
|
|
git clone git://repo.or.cz/tinycc.git
|
|
|
|
cd tinycc
|
|
|
|
|
2021-08-15 10:43:25 +02:00
|
|
|
export CC=clang
|
|
|
|
|
|
|
|
./configure \
|
|
|
|
--cc=clang \
|
|
|
|
--prefix=thirdparty/tcc \
|
2021-08-15 08:49:56 +02:00
|
|
|
--bindir=thirdparty/tcc \
|
|
|
|
--crtprefix=thirdparty/tcc/lib:/usr/lib \
|
|
|
|
--libpaths=thirdparty/tcc/lib:/usr/lib:/lib:/usr/local/lib \
|
|
|
|
--debug
|
2021-08-15 10:32:40 +02:00
|
|
|
gmake
|
|
|
|
gmake install
|
2021-08-15 08:49:56 +02:00
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
mv tinycc/thirdparty/tcc thirdparty/tcc
|
|
|
|
mv thirdparty/tcc/tcc thirdparty/tcc/tcc.exe
|
|
|
|
|
2021-08-15 10:32:40 +02:00
|
|
|
sudo ln -s $(pwd)/thirdparty/tcc/tcc.exe /usr/local/bin/tcc
|
|
|
|
|
2021-08-15 08:49:56 +02:00
|
|
|
thirdparty/tcc/tcc.exe -v -v
|
2021-08-15 10:32:40 +02:00
|
|
|
|