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

Main: adding --locate, --locate_lib, --locate_ocaml #3509

Merged
merged 6 commits into from
Oct 1, 2024

Conversation

mtzguido
Copy link
Member

@mtzguido mtzguido commented Oct 1, 2024

These options allow to programatically query F* for the path to its executable, library, and ocaml-built library. This simplifies writing makefiles and other build automation by avoiding manual path computation, which are really annoying and brittle.

@mtzguido
Copy link
Member Author

mtzguido commented Oct 1, 2024

@mtzguido
Copy link
Member Author

mtzguido commented Oct 1, 2024

Added a patch to display some info on startup whenever --debug is on:

$ ./bin/fstar.exe --debug y
- F* executable: /home/guido/r/fstar/upstream/bin/fstar.exe
- F* exec dir: /home/guido/r/fstar/upstream/bin
- Library root: /home/guido/r/fstar/upstream/bin/../ulib
- Full include path: ["/home/guido/r/fstar/upstream/bin/../ulib", "/home/guido/r/fstar/upstream/bin/../ulib/legacy", "/home/guido/r/fstar/upstream/bin/../ulib/experimental", "/home/guido/r/fstar/upstream/bin/../ulib/.cache", "."]

Will try to load cmxs files: []
* Error 5:
  - No file provided

@mtzguido mtzguido enabled auto-merge October 1, 2024 23:22
@mtzguido mtzguido merged commit 6c7225f into FStarLang:master Oct 1, 2024
2 checks passed
@mtzguido mtzguido deleted the locate_options branch October 1, 2024 23:33
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