aboutsummaryrefslogtreecommitdiff
path: root/config/dune
blob: 5f2f7b1222bfda8390df231fa5af6f23c161d4f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
(library
 (name config)
 (synopsis "Coq Configuration Variables")
 (public_name coq.config)
 (wrapped false))

; Dune doesn't use configure's output, but it is still necessary for
; some Coq files to work; will be fixed in the future.
(rule
 (targets coq_config.ml coq_config.py Makefile dune.c_flags)
 (mode fallback)
 (deps
   %{project_root}/configure.ml
   %{project_root}/dev/ocamldebug-coq.run
   %{project_root}/dev/header.c
  (env_var COQ_CONFIGURE_PREFIX))
 (action (chdir %{project_root} (run %{ocaml} configure.ml -no-ask -native-compiler no))))