testing/rethinkdb: check for arch

This commit is contained in:
Carlo Landmeter 2015-07-04 18:02:41 +00:00
parent fd734b5b45
commit 192b0db66f

View File

@ -41,9 +41,16 @@ build() {
--dynamic all \
--with-system-malloc \
|| return 1
local _arch
case $CARCH in
x86) _arch=ia32 ;;
x86_64) _arch=x64 ;;
esac
export LDFLAGS="$LDFLAGS -lexecinfo"
make || paxmark -m \
build/external/v8_3.30.33.16/build/out/x64.release/mksnapshot
build/external/v8_3.30.33.16/build/out/${_arch}.release/mksnapshot
make || return 1
}