fix compilation in fresh env
This commit is contained in:
parent
2ed3e90018
commit
943dd5a236
5
mix.exs
5
mix.exs
|
@ -82,11 +82,12 @@ defmodule Mix.Tasks.Compile.Asn1 do
|
||||||
|
|
||||||
Erlang.compile(manifest(), mappings, :asn1, :erl, force, fn
|
Erlang.compile(manifest(), mappings, :asn1, :erl, force, fn
|
||||||
input, output ->
|
input, output ->
|
||||||
|
File.mkdir(Path.dirname(output))
|
||||||
options = options ++ [:noobj, outdir: Erlang.to_erl_file(Path.dirname(output))]
|
options = options ++ [:noobj, outdir: Erlang.to_erl_file(Path.dirname(output))]
|
||||||
|
|
||||||
case :asn1ct.compile(Erlang.to_erl_file(input), options) do
|
case :asn1ct.compile(Erlang.to_erl_file(input), options) do
|
||||||
:ok -> :ok
|
:ok -> {:ok, [], []}
|
||||||
error -> error
|
:error -> {:error, [], []}
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue