diff options
author | Christophe Romain <christophe.romain@process-one.net> | 2017-10-04 12:03:36 +0200 |
---|---|---|
committer | Christophe Romain <christophe.romain@process-one.net> | 2017-10-04 12:03:36 +0200 |
commit | 9e95150803e06e2dfbf917a4c70eb99193103c32 (patch) | |
tree | 14a944d57390548fb522631de95687ae489acab2 /mix.exs | |
parent | Fix crash in mod_http_fileserver when logging URL with query elements (#2021) (diff) |
Fix warning when compile with newer elixir
Diffstat (limited to 'mix.exs')
-rw-r--r-- | mix.exs | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -132,7 +132,12 @@ defmodule Mix.Tasks.Compile.Asn1 do mappings = Enum.zip(source_paths, dest_paths) options = project[:asn1_options] || [] - Erlang.compile(manifest(), mappings, :asn1, :erl, opts[:force], fn + force = case opts[:force] do + :true -> [force: true] + _ -> [force: false] + end + + Erlang.compile(manifest(), mappings, :asn1, :erl, force, fn input, output -> options = options ++ [:noobj, outdir: Erlang.to_erl_file(Path.dirname(output))] case :asn1ct.compile(Erlang.to_erl_file(input), options) do |