Skip to content

Commit 2458f73

Browse files
authored
Merge pull request #194 from lean-dojo/stable
Bump to latest & fix bugs
2 parents 2592088 + 8a83359 commit 2458f73

3 files changed

Lines changed: 14 additions & 9 deletions

File tree

lake-manifest.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@
55
"type": "git",
66
"subDir": null,
77
"scope": "",
8-
"rev": "7152850e7b216a0d409701617721b6e469d34bf6",
8+
"rev": "b5b9e2bb45ce91e4bc44eaa738c3a8910404ab82",
99
"name": "aesop",
1010
"manifestFile": "lake-manifest.json",
11-
"inputRev": "7152850e7b216a0d409701617721b6e469d34bf6",
11+
"inputRev": "master",
1212
"inherited": false,
1313
"configFile": "lakefile.toml"},
1414
{"url": "https://github.com/leanprover-community/batteries.git",
1515
"type": "git",
1616
"subDir": null,
1717
"scope": "",
18-
"rev": "32dc18cde3684679f3c003de608743b57498c56f",
18+
"rev": "e535e4feb0aa360e59e7adf4837b91ffbfb8c943",
1919
"name": "batteries",
2020
"manifestFile": "lake-manifest.json",
21-
"inputRev": "32dc18cde3684679f3c003de608743b57498c56f",
21+
"inputRev": "main",
2222
"inherited": false,
2323
"configFile": "lakefile.toml"}],
2424
"name": "LeanCopilot",

lakefile.lean

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,14 @@ deriving Inhabited, BEq
2828

2929

3030
def nproc : IO Nat := do
31-
let cmd := if getOS! == .windows then "cmd" else "nproc"
32-
let args := if getOS! == .windows then #["/c echo %NUMBER_OF_PROCESSORS%"] else #[]
31+
let (cmd, args) :=
32+
match getOS! with
33+
| .windows => ("cmd", #["/c echo %NUMBER_OF_PROCESSORS%"])
34+
| .macos => ("sysctl", #["-n", "hw.ncpu"])
35+
| .linux => ("nproc", #[])
3336
let out ← IO.Process.output {cmd := cmd, args := args, stdin := .null}
37+
if out.exitCode != 0 then
38+
return 4
3439
return out.stdout.trimAscii.toNat!
3540

3641

@@ -422,8 +427,8 @@ extern_lib libleanffi pkg := do
422427
buildStaticLib (pkg.sharedLibDir / name) #[ct2O]
423428

424429

425-
require batteries from git "https://github.com/leanprover-community/batteries.git" @ "32dc18cde3684679f3c003de608743b57498c56f"
426-
require aesop from git "https://github.com/leanprover-community/aesop" @ "7152850e7b216a0d409701617721b6e469d34bf6"
430+
require batteries from git "https://github.com/leanprover-community/batteries.git" @ "main"
431+
require aesop from git "https://github.com/leanprover-community/aesop" @ "master"
427432

428433
meta if get_config? env = some "dev" then -- dev is so not everyone has to build it
429434
require «doc-gen4» from git "https://github.com/leanprover/doc-gen4" @ "main"

lean-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
leanprover/lean4:v4.30.0
1+
leanprover/lean4:v4.32.0-rc1

0 commit comments

Comments
 (0)