coq: fix build with bytecode.

This commit is contained in:
Leah Neukirchen 2024-02-24 01:21:05 +01:00
parent 85971d29c4
commit 0ee43e2bf9
1 changed files with 7 additions and 0 deletions

View File

@ -20,6 +20,13 @@ case "$XBPS_TARGET_MACHINE" in
ppc*) broken="R_PPC_REL24 relocation out of range";;
esac
do_patch() {
if ! command -v ocamlc.opt >/dev/null; then
# see coq/coq#18609
vsed -i -e 's/dep ^ ".cmxs"/dep ^ ".cma"/' tools/dune_rule_gen/coq_rules.ml
fi
}
do_build() {
make dunestrap
dune build --display=short -p coq-core,coq-stdlib,coqide-server