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

Extraction: not extracting tactics unless backend is Plugin #3542

Merged
merged 3 commits into from
Oct 9, 2024

Conversation

mtzguido
Copy link
Member

@mtzguido mtzguido commented Oct 9, 2024

This is an old wart, even with --codegen OCaml we are still extracting all tactics in the file, and only skipping their registration into the compiler as plugins. This is silly, since this function will never be called. This also means we cannot compile the module with a small fstar-lib meant for applications, which we want to do.

This patch skips the extraction for anything in Tac, except when --codegen Plugin was given.

Running a build here: https://github.com/mtzguido/FStar/actions/runs/11245452858

@mtzguido
Copy link
Member Author

mtzguido commented Oct 9, 2024

Given that Pulse and HACL* are green (which use plugins), I think this should be safe so I'll merge it. Please shout if I broke something.

@mtzguido mtzguido merged commit 6835371 into FStarLang:master Oct 9, 2024
2 checks passed
@mtzguido mtzguido deleted the no_extract_tac branch October 9, 2024 01:51
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

Successfully merging this pull request may close these issues.

1 participant