fix: leanpkg on Windows

This commit is contained in:
Sebastian Ullrich 2020-12-30 14:13:05 +01:00
parent d58b02a0be
commit a7e89f6d7e

View file

@ -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