Files
MP-SPDZ/Scripts/build.sh
haslersn 02981fd3ae Take external programs from environment in order to support non FHS distros
For instance, NixOS doesn't follow the FHS.
2020-07-13 17:35:48 +02:00

20 lines
421 B
Bash
Executable File

#!/usr/bin/env bash
function build
{
echo ARCH = $1 >> CONFIG.mine
echo GDEBUG = >> CONFIG.mine
make clean
rm -R static
mkdir static
make -j 4 static-release
mkdir bin
dest=bin/`uname`-$2
rm -R $dest
mv static $dest
strip $dest/*
}
build '-maes -mpclmul -DCHECK_AES -DCHECK_PCLMUL -DCHECK_AVX' amd64
build '-msse4.1 -maes -mpclmul -mavx -mavx2 -mbmi2 -madx -DCHECK_ADX' avx2