1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
#!/bin/bash
set -e
ci_dir="$(dirname "$0")"
. "${ci_dir}/ci-common.sh"
WITH_SUBMODULES=1
git_download fiat_crypto
if [ "$DOWNLOAD_ONLY" ]; then exit 0; fi
# We need a larger stack size to not overflow ocamlopt+flambda when
# building the executables.
# c.f. https://github.com/coq/coq/pull/8313#issuecomment-416650241
stacksize=32768
# fiat-crypto is not guaranteed to build with the latest version of
# bedrock2, so we use the pinned version of bedrock2, but the external
# version of other developments
make_args=(EXTERNAL_REWRITER=1 EXTERNAL_COQPRIME=1)
( cd "${CI_BUILD_DIR}/fiat_crypto"
ulimit -s $stacksize
make -j 1 "${make_args[@]}" pre-standalone-extracted printlite lite
make -j 1 "${make_args[@]}" all-except-compiled
)
|