Open hendriktews opened 5 months ago
Until this feature is implemented, affected users may workaround by setting coq-compile-extra-coqdep-arguments
from PR #735. Note that one needs to use absolute path' there, because coqdep is also invoked on temporary files in /tmp
that contain single require lines from the current file. The option needs to be set for all files of a project, so it's probably best to set it via directory variables, eg.,
((coq-mode .
((coq-compile-extra-coqdep-arguments
. ("-m" "/absolute/path/to/META.file")))))
Since 8.16 coq_makefile extracts META files from _CoqProject and passes them to coqdep via
-m
, see https://github.com/coq/coq/pull/15220. PG should also extract META files, such that a-m
switch can be added to coqdep invocations. Otherwise auto-compilation on files using ML modules will fail, see #724. Note that the-m
switch is only a necessary (but no sufficient) condition to support ML modules in auto-compilation.