Skip to content

Commit

Permalink
Merge pull request #3565 from mtzguido/ocamlenv
Browse files Browse the repository at this point in the history
Introduce --ocamlenv
  • Loading branch information
mtzguido authored Oct 14, 2024
2 parents 84d9ea8 + 8820325 commit da7184a
Show file tree
Hide file tree
Showing 7 changed files with 521 additions and 463 deletions.
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

0 comments on commit da7184a

Please sign in to comment.