initial commit

This commit is contained in:
Colin Yates 2018-08-06 17:40:06 +01:00
commit 616d834838
10 changed files with 99 additions and 0 deletions

17
scripts/build-linux.sh Executable file
View file

@ -0,0 +1,17 @@
#!/bin/bash
my_pwd=`pwd`
echo "Currently in $my_pwd"
mkdir -p /workdir/linux
cp -Rp * /workdir/linux/
rm -rf /workdir/linux/src/nimcache
cd /workdir/linux
nimble c --cpu:amd64 --os:linux --opt:speed --embedsrc --threads:on --checks:on -c -d:release src/*.nim
cd src
cp /opt/Nim/lib/nimbase.h nimcache
gcc -o linux.exe nimcache/*.c
cp linux.exe $my_pwd/dist/
echo "Copied linux.exe to $my_pwd/dist"
cd $my_pwd