| 1 | #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | # fiat-crypto job sets up the sources |
| 6 | if [scip-shell system . . `[`. "$DOWNLOAD_ONLY" ]; then exit 0; fi |
| 7 | |
| 8 | ci_dir="$(dirnamescip-shell system . . dirname. "$0")" |
| 9 | . "${ci_dir}/ci-common.sh" |
| 10 | |
| 11 | # We set the stack size to 128MiB to be able to build with flambda |
| 12 | # See https://github.com/ocaml/ocaml/issues/7842 |
| 13 | ulimit -s 131072 |
| 14 | |
| 15 | # Regardless of where the dependencies came from when building |
| 16 | # ci-fiat_crypto, we don't need them for building the OCaml |
| 17 | # binaries and lite C files, so we use all external dependencies. |
| 18 | # we explicitly pass OCAMLFIND so that we pick up the opam |
| 19 | # (non-flambda one) rather than the one used to build coq |
| 20 | make_args=(EXTERNAL_DEPENDENCIES=1 OCAMLFIND=ocamlfind) |
| 21 | |
| 22 | ( cd "${CI_BUILD_DIR}/fiat_crypto" |
| 23 | makescip-shell system . . make. "${make_args[@]}" -j 1 lite-c-files |
| 24 | ) |