-
Notifications
You must be signed in to change notification settings - Fork 6
/
lakefile.lean
43 lines (35 loc) · 1.37 KB
/
lakefile.lean
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import Lake
open Lake DSL
def moreServerArgs := #[
"-Dpp.unicode.fun=true", -- pretty-prints `fun a ↦ b`
"-DautoImplicit=false",
"-DrelaxedAutoImplicit=false"
]
-- These settings only apply during `lake build`, but not in VSCode editor.
def moreLeanArgs := moreServerArgs
-- These are additional settings which do not affect the lake hash,
-- so they can be enabled in CI and disabled locally or vice versa.
-- Warning: Do not put any options here that actually change the olean files,
-- or inconsistent behavior may result
def weakLeanArgs : Array String :=
if get_config? CI |>.isSome then
#["-DwarningAsError=true"]
else
#[]
package «bonnAnalysis» where
leanOptions := #[
⟨`relaxedAutoImplicit, false⟩, -- prevents typos to be interpreted as new free variables
⟨`pp.unicode.fun, true⟩, -- pretty-prints `fun a ↦ b`
⟨`autoImplicit, false⟩]
require mathlib from git
"https://github.com/leanprover-community/mathlib4.git"
require checkdecls from git
"https://github.com/PatrickMassot/checkdecls.git" @ "master"
-- This is run only if we're in `dev` mode. This is so not everyone has to build doc-gen
meta if get_config? env = some "dev" then
require «doc-gen4» from git
"https://github.com/leanprover/doc-gen4" @ "main"
@[default_target]
lean_lib «BonnAnalysis» where
moreLeanArgs := moreLeanArgs
weakLeanArgs := weakLeanArgs