Skip to content

Commit

Permalink
Lowercase [Sys.getcwd ()] under Win32
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolás Ojeda Bär <n.oje.bar@gmail.com>
  • Loading branch information
nojb committed Nov 23, 2020
1 parent ac4aa91 commit 5c59cba
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/stdune/path.ml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,13 @@ end = struct
let base, _ = split_extension t in
to_string base ^ ext |> make

let cwd () = make (Sys.getcwd ())
let cwd () =
let s = Sys.getcwd () in
make
( if Sys.win32 then
String.lowercase s
else
s )

let initial_cwd = cwd ()

Expand Down

0 comments on commit 5c59cba

Please sign in to comment.