fix: leanpkg on Windows
This commit is contained in:
parent
d58b02a0be
commit
a7e89f6d7e
1 changed files with 4 additions and 1 deletions
|
|
@ -37,11 +37,14 @@ def build (leanArgs : List String) : IO Unit := do
|
|||
let manifest ← readManifest
|
||||
let path ← configure
|
||||
let leanArgs := (match manifest.timeout with | some t => ["-T", toString t] | none => []) ++ leanArgs
|
||||
execCmd {
|
||||
let mut spawnArgs := {
|
||||
cmd := "leanmake"
|
||||
cwd := manifest.effectivePath
|
||||
args := #[s!"LEAN_OPTS={" ".intercalate leanArgs}", s!"LEAN_PATH={path}"]
|
||||
}
|
||||
if System.Platform.isWindows then
|
||||
spawnArgs := { spawnArgs with cmd := "sh", args := #[s!"{← IO.appDir}\\{spawnArgs.cmd}"] ++ spawnArgs.args }
|
||||
execCmd spawnArgs
|
||||
|
||||
def initGitignoreContents :=
|
||||
"/build
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue