Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coq-load-project file should extract META files #736

Open
hendriktews opened this issue Feb 12, 2024 · 1 comment
Open

coq-load-project file should extract META files #736

hendriktews opened this issue Feb 12, 2024 · 1 comment

Comments

@hendriktews
Copy link
Collaborator

Since 8.16 coq_makefile extracts META files from _CoqProject and passes them to coqdep via -m, see coq/coq#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.

@hendriktews
Copy link
Collaborator Author

hendriktews commented Feb 12, 2024

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")))))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant