File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change @@ -28,9 +28,14 @@ deriving Inhabited, BEq
2828
2929
3030def 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
428433meta if get_config? env = some "dev" then -- dev is so not everyone has to build it
429434require «doc-gen4 » from git "https://github.com/leanprover/doc-gen4" @ "main"
Original file line number Diff line number Diff line change 1- leanprover/lean4:v4.30.0
1+ leanprover/lean4:v4.32.0-rc1
You can’t perform that action at this time.
0 commit comments