Fix cross platform build
This commit is contained in:
parent
32afc14efe
commit
a9d5d174cf
3 changed files with 20 additions and 21 deletions
|
|
@ -7,11 +7,8 @@ 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/
|
||||
nim c --cpu:amd64 --os:linux --opt:speed --embedsrc --threads:on --checks:on -d:release src/*.nim
|
||||
cp src/docker_nim_dev_example $my_pwd/dist/linux.exe
|
||||
echo "Copied linux.exe to $my_pwd/dist"
|
||||
|
||||
cd $my_pwd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue