v / .github / workflows
Raw file | 32 loc (22 sloc) | 646 bytes | Latest commit hash e64a9fa59
1#!/usr/local/bin/bash
2
3## should be run in V's main repo folder!
4
5rm -rf tinycc/
6rm -rf thirdparty/tcc/
7
8pushd .
9
10git clone git://repo.or.cz/tinycc.git
11cd tinycc
12
13export CC=clang
14
15./configure \
16 --cc=clang \
17 --prefix=thirdparty/tcc \
18 --bindir=thirdparty/tcc \
19 --crtprefix=thirdparty/tcc/lib:/usr/lib \
20 --libpaths=thirdparty/tcc/lib:/usr/lib:/lib:/usr/local/lib \
21 --debug
22gmake
23gmake install
24
25popd
26
27mv tinycc/thirdparty/tcc thirdparty/tcc
28mv thirdparty/tcc/tcc thirdparty/tcc/tcc.exe
29
30sudo ln -s $(pwd)/thirdparty/tcc/tcc.exe /usr/local/bin/tcc
31
32thirdparty/tcc/tcc.exe -v -v