We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 752a09c commit 0c17fa0Copy full SHA for 0c17fa0
lib/elixir/test/elixir/test_helper.exs
@@ -23,15 +23,21 @@ defmodule PathHelpers do
23
end
24
25
def elixirc(args) do
26
- :os.cmd '#{elixirc_executable} #{args}'
+ :os.cmd binary_to_list("#{elixirc_executable} #{:unicode.characters_to_binary(args)}")
27
28
29
def elixir_executable do
30
- Path.expand("../../../../../bin/elixir", __FILE__)
+ Path.expand("../../../../../bin/elixir#{executable_extension}", __FILE__)
31
32
33
def elixirc_executable do
34
- elixir_executable <> "c"
+ Path.expand("../../../../../bin/elixirc#{executable_extension}", __FILE__)
35
+ end
36
+
37
+ if match? { :win32, _ }, :os.type do
38
+ def executable_extension, do: ".bat"
39
+ else
40
+ def executable_extension, do: ""
41
42
43
0 commit comments