Skip to content

Commit 3d303c6

Browse files
committed
Use binstream only on Windows
1 parent 96fd68a commit 3d303c6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: lib/elixir_make/compiler.ex

+5-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,11 @@ defmodule ElixirMake.Compiler do
104104
opts = [
105105
# There is no guarantee the command will return valid UTF-8,
106106
# especially on Windows, so don't try to interpret the stream
107-
into: IO.binstream(:stdio, :line),
107+
into:
108+
if(match?({:win32, _}, :os.type()),
109+
do: IO.binstream(:stdio, :line),
110+
else: IO.stream(:stdio, :line)
111+
),
108112
stderr_to_stdout: true,
109113
cd: cwd,
110114
env: env

0 commit comments

Comments
 (0)