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.
19 lines
264 B
JSON
19 lines
264 B
JSON
{
|
|
"name": "Dep",
|
|
"isModule": false,
|
|
"imports": [
|
|
{
|
|
"module": "Dep",
|
|
"importAll": false,
|
|
"isExported": true
|
|
}
|
|
],
|
|
"modules": {
|
|
"Dep": {
|
|
"olean": "Dep.olean"
|
|
}
|
|
},
|
|
"dynlibs": [],
|
|
"plugins": [],
|
|
"options": {}
|
|
}
|