-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
256240b
commit 04b08fd
Showing
6 changed files
with
55 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,41 @@ | ||
import Lake | ||
open Lake DSL | ||
|
||
package «flt-regular» { | ||
-- add any package configuration options here | ||
} | ||
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 «flt-regular» 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" | ||
|
||
require «doc-gen4» from git | ||
"https://github.com/leanprover/doc-gen4" @ "main" | ||
|
||
@[default_target] | ||
lean_lib «FltRegular» { | ||
-- add any library configuration options here | ||
} | ||
lean_lib «FltRegular» where | ||
moreLeanArgs := moreLeanArgs | ||
weakLeanArgs := weakLeanArgs |