fix: add Lake to built-in search path
This commit is contained in:
parent
6a90b30875
commit
b3c8ee2923
1 changed files with 2 additions and 1 deletions
|
|
@ -170,7 +170,8 @@ section Initialization
|
|||
| some path => pure <| System.FilePath.mk path / "bin" / lakePath
|
||||
| _ => pure <| (← appDir) / lakePath
|
||||
lakePath.withExtension System.FilePath.exeExtension
|
||||
let mut srcSearchPath := [(← appDir) / ".." / "lib" / "lean" / "src"]
|
||||
let srcPath := (← appDir) / ".." / "lib" / "lean" / "src"
|
||||
let mut srcSearchPath := [srcPath, srcPath / "lake"]
|
||||
if let some p := (← IO.getEnv "LEAN_SRC_PATH") then
|
||||
srcSearchPath := System.SearchPath.parse p ++ srcSearchPath
|
||||
let (headerEnv, msgLog) ← try
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue