This PR adds the `--setup` option to the `lean` CLI. It takes a path to a JSON file containing information about a module's imports and configuration, superseding that in the module's own file header. This will be used by Lake to specify paths to module artifacts (e.g., oleans and ileans) separate from the `LEAN_PATH` schema. To facilitate JSON serialization of the header data structure, `NameMap` JSON instances have been added to core, and `LeanOptions` now makes use of them. |
||
|---|---|---|
| .. | ||
| alloc.h | ||
| ascii.cpp | ||
| ascii.h | ||
| bit_tricks.cpp | ||
| bit_tricks.h | ||
| CMakeLists.txt | ||
| escaped.cpp | ||
| escaped.h | ||
| exception_with_pos.h | ||
| ffi.cpp | ||
| freset.h | ||
| init_module.cpp | ||
| init_module.h | ||
| io.h | ||
| kvmap.cpp | ||
| kvmap.h | ||
| lbool.cpp | ||
| lbool.h | ||
| list.h | ||
| list_fn.cpp | ||
| list_fn.h | ||
| macros.h | ||
| map_foreach.cpp | ||
| map_foreach.h | ||
| message_definitions.h | ||
| name.cpp | ||
| name.h | ||
| name_generator.cpp | ||
| name_generator.h | ||
| name_hash_map.h | ||
| name_hash_set.h | ||
| name_map.h | ||
| name_set.cpp | ||
| name_set.h | ||
| nat.h | ||
| null_ostream.h | ||
| option_declarations.cpp | ||
| option_declarations.h | ||
| options.cpp | ||
| options.h | ||
| output_channel.h | ||
| pair.h | ||
| path.cpp | ||
| path.h | ||
| rb_map.h | ||
| rb_tree.h | ||
| rc.h | ||
| shell.cpp | ||
| test.h | ||
| timeit.cpp | ||
| timeit.h | ||
| timer.cpp | ||
| timer.h | ||
| unit.h | ||
| unlock_guard.h | ||