You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Manual/BuildTools/Lake/CLI.lean
+23-23Lines changed: 23 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -143,19 +143,19 @@ Otherwise, the provided command is invoked in Lake's environment.
143
143
::::paragraph
144
144
The following variables are set, overriding previous values:
145
145
:::table align:=left
146
-
* row
146
+
*
147
147
* {envVar def:=true}`LAKE`
148
148
* The detected Lake executable
149
-
* row
149
+
*
150
150
* {envVar}`LAKE_HOME`
151
151
* The detected {tech}[Lake home]
152
-
* row
152
+
*
153
153
* {envVar}`LEAN_SYSROOT`
154
154
* The detected Lean {tech}[toolchain] directory
155
-
* row
155
+
*
156
156
* {envVar}`LEAN_AR`
157
157
* The detected Lean `ar` binary
158
-
* row
158
+
*
159
159
* {envVar}`LEAN_CC`
160
160
* The detected C compiler (if not using the bundled one)
161
161
:::
@@ -164,20 +164,20 @@ The following variables are set, overriding previous values:
164
164
::::paragraph
165
165
The following variables are augmented with additional information:
166
166
:::table align:=left
167
-
* row
167
+
*
168
168
* {envVar}`LEAN_PATH`
169
169
* Lake's and the {tech}[workspace]'s Lean {tech}[library directories] are added.
170
-
* row
170
+
*
171
171
* {envVar}`LEAN_SRC_PATH`
172
172
* Lake's and the {tech}[workspace]'s {tech}[source directories] are added.
173
-
* row
173
+
*
174
174
* {envVar}`PATH`
175
175
* Lean's, Lake's, and the {tech}[workspace]'s {tech}[binary directories] are added.
176
176
On Windows, Lean's and the {tech}[workspace]'s {tech}[library directories] are also added.
177
-
* row
177
+
*
178
178
* {envVar}`DYLD_LIBRARY_PATH`
179
179
* On macOS, Lean's and the {tech}[workspace]'s {tech}[library directories] are added.
180
-
* row
180
+
*
181
181
* {envVar}`LD_LIBRARY_PATH`
182
182
* On platforms other than Windows and macOS, Lean's and the {tech}[workspace]'s {tech}[library directories] are added.
183
183
:::
@@ -186,33 +186,33 @@ The following variables are augmented with additional information:
186
186
::::paragraph
187
187
Lake itself can be configured with the following environment variables:
188
188
:::table align:=left
189
-
* row
189
+
*
190
190
* {envVar def:=true}`ELAN_HOME`
191
191
* The location of the {ref "elan"}[Elan] installation, which is used for {ref "automatic-toolchain-updates"}[automatic toolchain updates].
192
192
193
-
* row
193
+
*
194
194
* {envVar def:=true}`ELAN`
195
195
* The location of the `elan` binary, which is used for {ref "automatic-toolchain-updates"}[automatic toolchain updates].
196
196
If it is not set, an occurrence of `elan` must exist on the {envVar}`PATH`.
197
197
198
-
* row
198
+
*
199
199
* {envVar def:=true}`LAKE_HOME`
200
200
* The location of the Lake installation.
201
201
This environment variable is only consulted when Lake is unable to determine its installation path from the location of the `lake` executable that's currently running.
202
-
* row
202
+
*
203
203
* {envVar def:=true}`LEAN_SYSROOT`
204
204
* The location of the Lean installation, used to find the Lean compiler, the standard library, and other bundled tools.
205
205
Lake first checks whether its binary is colocated with a Lean install, using that installation if so.
206
206
If not, or if {envVar def:=true}`LAKE_OVERRIDE_LEAN` is true, then Lake consults {envVar}`LEAN_SYSROOT`.
207
207
If this is not set, Lake consults the {envVar def:=true}`LEAN` environment variable to find the Lean compiler, and attempts to find the Lean installation relative to the compiler.
208
208
If {envVar}`LEAN` is set but empty, Lake considers Lean to be disabled.
209
209
If {envVar}`LEAN_SYSROOT` and {envVar}`LEAN` are unset, the first occurrence of `lean` on the {envVar}`PATH` is used to find the installation.
210
-
* row
210
+
*
211
211
* {envVar def:=true}`LEAN_CC` and {envVar def:=true}`LEAN_AR`
212
212
* If {envVar}`LEAN_CC` and/or {envVar}`LEAN_AR` is set, its value is used as the C compiler or `ar` command when building libraries.
213
213
If not, Lake will fall back to the bundled tool in the Lean installation.
214
214
If the bundled tool is not found, the value of {envVar def:=true}`CC` or {envVar def:=true}`AR`, followed by a `cc` or `ar` on the {envVar}`PATH`, are used.
215
-
* row
215
+
*
216
216
* {envVar def:=true}`LAKE_NO_CACHE`
217
217
* If true, Lake does not use cached builds from [Reservoir](https://reservoir.lean-lang.org/) or {ref "lake-github"}[GitHub].
218
218
This environment variable can be overridden using the {lakeOpt}`--try-cache` command-line option.
@@ -507,25 +507,25 @@ They are listed in {ref "lake-facets"}[the section on facets].
507
507
::::example"Target and Facet Specifications"
508
508
509
509
:::table
510
-
* ignored
510
+
*
511
511
- `a`
512
512
- The {tech}[default facet](s) of target `a`
513
-
* ignored
513
+
*
514
514
- `@a`
515
515
- The {tech}[default targets] of {tech}[package] `a`
516
-
* ignored
516
+
*
517
517
- `+A`
518
518
- The Lean artifacts of module `A` (because the default facet of modules is `leanArts`)
519
-
* ignored
519
+
*
520
520
- `@a/b`
521
521
- The default facet of target `b` of package `a`
522
-
* ignored
522
+
*
523
523
- `@a/+A:c`
524
524
- The C file compiled from module `A` of package `a`
525
-
* ignored
525
+
*
526
526
- `:foo`
527
527
- The {tech}[root package]'s facet `foo`
528
-
* ignored
528
+
*
529
529
- `A/B/C.lean:o`
530
530
- The compiled object code for the module in the file `A/B/C.lean`
0 commit comments