mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci: add a script to install tcc from source on freebsd so it can be run the freebsd job
This commit is contained in:
parent
c225bb8465
commit
e3bd793f43
@ -2,12 +2,13 @@ freebsd_instance:
|
||||
image_family: freebsd-13-0
|
||||
|
||||
task:
|
||||
install_script: pkg install -y git tcc
|
||||
install_script: pkg install -y git tcc bash
|
||||
script: |
|
||||
echo 'Building V'
|
||||
git clone https://github.com/vlang/v
|
||||
cd v
|
||||
make
|
||||
tcc --version
|
||||
## .github/workflows/freebsd_build_tcc.sh
|
||||
tcc -v -v
|
||||
echo 'Build cmd/tools/fast'
|
||||
cd cmd/tools/fast && ../../../v fast.v && ./fast
|
||||
|
26
.github/workflows/freebsd_build_tcc.sh
vendored
Executable file
26
.github/workflows/freebsd_build_tcc.sh
vendored
Executable file
@ -0,0 +1,26 @@
|
||||
#!/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
|
||||
|
||||
./configure --prefix=thirdparty/tcc \
|
||||
--bindir=thirdparty/tcc \
|
||||
--crtprefix=thirdparty/tcc/lib:/usr/lib \
|
||||
--libpaths=thirdparty/tcc/lib:/usr/lib:/lib:/usr/local/lib \
|
||||
--debug
|
||||
make
|
||||
make install
|
||||
|
||||
popd
|
||||
|
||||
mv tinycc/thirdparty/tcc thirdparty/tcc
|
||||
mv thirdparty/tcc/tcc thirdparty/tcc/tcc.exe
|
||||
|
||||
thirdparty/tcc/tcc.exe -v -v
|
Loading…
Reference in New Issue
Block a user