Skip to content

Commit

Permalink
Fix platform detection on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
bryphe committed Feb 13, 2019
1 parent 261a59c commit 9bd1473
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Core/Environment.re
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ type os =
| Unknown;

let os = {
let ic = Unix.open_process_in("uname");
let uname = input_line(ic);
let _ = close_in(ic);
switch (Sys.os_type) {
| "Win32" => Windows
| _ =>
let ic = Unix.open_process_in("uname");
let _ = close_in(ic);
let uname = input_line(ic);
switch (uname) {
| "Darwin" => Mac
| "Linux" => Linux
Expand Down

0 comments on commit 9bd1473

Please sign in to comment.