Hello, is it possible to specify an argument/flag in a file? E.g. -arg -type-in-type
. The intention being that students can use a library in jsCoq that requires this flag.
For this specific flag you can do Unset Universe Checking.
which has the same effect. I don't know if all command-line flags have such an equivalent flag, but I would hope so.
Thank you!
rewrite rules (not yet in a released coq version), impredicative set, noinit are examples of command lines flags which don't have a corresponding Set
would it even make sense to have a Set
for impredicative set? It seems like a recipe for achieiving unsoundness quickly
and Unset Universe Checking isn't?
Is there a standard way of setting individual flags to specific files? I don't remember seeing this in coq_makefile
's documentation. Maybe with dune?
Pierre Courtieu said:
Is there a standard way of setting individual flags to specific files? I don't remember seeing this in
coq_makefile
's documentation. Maybe with dune?
We don't have per-file flags in dune.
Pierre Courtieu said:
Is there a standard way of setting individual flags to specific files? I don't remember seeing this in
coq_makefile
's documentation. Maybe with dune?
I suppose you could add to file Makefile.coq.local
a line
foo.vo: COQEXTRAFLAGS=whatever
that may set the variable for dependencies of foo though
you need private
to be really specific to that file https://www.gnu.org/software/make/manual/make.html#Suppressing-Inheritance
Actually we could implement this in Dune easily, something like:
(coq.theory
(name Foo)
(flags
(per_library
(Bar.Muu (-w -some_thing_we_dont_want_here))))
It is a matter of:
Coq_lib_name.t -> Coq_Flags.t
coq_rules.ml:261
there is a todo, there, we need to inject the flags doing the test with the maptheories/dune
, so no more hackshttps://github.com/ocaml/dune/pull/10429
Last updated: Oct 13 2024 at 01:02 UTC