| 1 | #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | ci_dir="$(dirnamescip-shell system . . dirname. "$0")" |
| 6 | . "${ci_dir}/ci-common.sh" |
| 7 | |
| 8 | WITH_SUBMODULES=1 |
| 9 | git_download fiat_crypto |
| 10 | |
| 11 | if [scip-shell system . . `[`. "$DOWNLOAD_ONLY" ]; then exit 0; fi |
| 12 | |
| 13 | # We need a larger stack size to not overflow ocamlopt+flambda when |
| 14 | # building the executables. |
| 15 | # c.f. https://github.com/rocq-prover/rocq/pull/8313#issuecomment-416650241 |
| 16 | stacksize=32768 |
| 17 | |
| 18 | # fiat-crypto is not guaranteed to build with the latest version of |
| 19 | # bedrock2, so we use the pinned version of bedrock2 (set in |
| 20 | # ci-basic-overlay), but the external version of other developments |
| 21 | make_args=(EXTERNAL_REWRITER=1 EXTERNAL_COQPRIME=1 EXTERNAL_COQUTIL=1 EXTERNAL_BEDROCK2=1) |
| 22 | |
| 23 | export COQEXTRAFLAGS='-native-compiler no' # following bedrock2 |
| 24 | ( cd "${CI_BUILD_DIR}/fiat_crypto" |
| 25 | ulimit -s $stacksize |
| 26 | makescip-shell system . . make. "${make_args[@]}" pre-standalone-extracted printlite lite check-output || |
| 27 | makescip-shell system . . make. -j 1 "${make_args[@]}" pre-standalone-extracted printlite lite check-output |
| 28 | ) |