choosenim: build in release mode (#264)
This commit is contained in:
parent
b14f1314de
commit
0a07a49409
|
@ -1,8 +1,8 @@
|
||||||
# Template file for 'choosenim'
|
# Template file for 'choosenim'
|
||||||
pkgname=choosenim
|
pkgname=choosenim
|
||||||
version=0.3.2
|
version=0.3.2
|
||||||
revision=1
|
revision=2
|
||||||
hostmakedepends="git nim libressl-devel"
|
hostmakedepends="git nim"
|
||||||
makedepends="libressl-devel zlib-devel"
|
makedepends="libressl-devel zlib-devel"
|
||||||
depends="gcc"
|
depends="gcc"
|
||||||
short_desc="The Nim toolchain installer"
|
short_desc="The Nim toolchain installer"
|
||||||
|
@ -12,6 +12,10 @@ homepage="https://github.com/dom96/choosenim"
|
||||||
distfiles="${homepage}/archive/v${version}.tar.gz"
|
distfiles="${homepage}/archive/v${version}.tar.gz"
|
||||||
checksum=2478fcc75c5a147f63f755f700601ce25f8e2ca964b39ac3cb0d903d2fa22a2b
|
checksum=2478fcc75c5a147f63f755f700601ce25f8e2ca964b39ac3cb0d903d2fa22a2b
|
||||||
|
|
||||||
|
if [ -n "$CROSS_BUILD" ]; then
|
||||||
|
hostmakedepends+=" libressl-devel"
|
||||||
|
fi
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
local arch args
|
local arch args
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
@ -21,12 +25,12 @@ do_build() {
|
||||||
esac
|
esac
|
||||||
if [ -n "$arch" ]; then
|
if [ -n "$arch" ]; then
|
||||||
cat > nim.cfg <<EOF
|
cat > nim.cfg <<EOF
|
||||||
${arch}.linux.gcc.exe = "$CC"
|
$arch.linux.gcc.exe = "$CC"
|
||||||
${arch}.linux.gcc.linkerexe = "$CC"
|
$arch.linux.gcc.linkerexe = "$CC"
|
||||||
EOF
|
EOF
|
||||||
args="--cpu:${arch}"
|
args="--cpu:$arch"
|
||||||
fi
|
fi
|
||||||
nimble -y build ${args}
|
nimble -y build -d:release --passC:-flto "$args"
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
|
|
Loading…
Reference in New Issue