fix compilation in fresh env

This commit is contained in:
Alain Zscheile 2022-11-25 00:42:44 +01:00
parent 2ed3e90018
commit 943dd5a236

View file

@ -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