Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/contrib/travis/build_cmake.sh
- This file was added.
Property | Old Value | New Value |
---|---|---|
File Mode | null | 100755 |
#!/usr/bin/env bash | |||||
set -ev | |||||
deadalnix: We really need a linter to make these consistent. Also, why isn't the linter yelling at you for… | |||||
if [ "x$HOST" = "xi686-linux-gnu" ]; then | |||||
export TOOLCHAIN_FILE="-DCMAKE_TOOLCHAIN_FILE=../cmake/platforms/Linux32.cmake" | |||||
deadalnixUnsubmitted Not Done Inline ActionsI don't think export here is correct. deadalnix: I don't think export here is correct. | |||||
fi | |||||
if [ "x$BIGNUM" = "xno" ]; then | |||||
export USE_GMP="-DGMP_LIBRARY=OFF" | |||||
fi | |||||
mkdir -p buildcmake | |||||
pushd buildcmake | |||||
cmake -GNinja .. \ | |||||
-DSECP256K1_ECMULT_STATIC_PRECOMPUTATION=$STATICPRECOMPUTATION \ | |||||
-DSECP256K1_ENABLE_MODULE_ECDH=$ECDH \ | |||||
-DSECP256K1_ENABLE_MODULE_RECOVERY=$RECOVERY \ | |||||
-DSECP256K1_ENABLE_MODULE_SCHNORR=$SCHNORR \ | |||||
-DSECP256K1_ENABLE_JNI=$JNI \ | |||||
-DUSE_ASM_X86_64=$ASM \ | |||||
$USE_GMP \ | |||||
$TOOLCHAIN_FILE \ | |||||
ninja check-secp256k1 | |||||
popd |
We really need a linter to make these consistent. Also, why isn't the linter yelling at you for local related things?