initial commit
This commit is contained in:
parent
5b1294d5ae
commit
616d834838
10 changed files with 99 additions and 0 deletions
17
scripts/build-linux.sh
Executable file
17
scripts/build-linux.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue