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

Introduce --ocamlenv #3565

Merged
merged 7 commits into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
563 changes: 268 additions & 295 deletions ocaml/fstar-lib/generated/FStarC_Main.ml

Large diffs are not rendered by default.

27 changes: 26 additions & 1 deletion ocaml/fstar-lib/generated/FStarC_Options.ml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions src/basic/FStarC.Options.fst
Original file line number Diff line number Diff line change
Expand Up @@ -1631,6 +1631,13 @@ let rec specs_with_types warn_unsafe : list (char & string & opt_type & Pprint.d
"locate_ocaml",
Const (Bool true),
text "Print the root of the built OCaml F* library and exit");
( noshort,
"ocamlenv",
WithSideEffect ((fun _ -> print_error "--ocamlenv must be the first argument, see fstar.exe --help for details\n"; exit 1),
(Const (Bool true))),
text "With no arguments: print shell code to set up an environment with the OCaml libraries in scope (similar to 'opam env'). \
With arguments: run a command in that environment. \
NOTE: this must be the FIRST argument passed to F* and other options are NOT processed.");
]

and specs (warn_unsafe:bool) : list (FStarC.Getopt.opt & Pprint.document) =
Expand Down
Loading
Loading