aboutsummaryrefslogtreecommitdiff
path: root/mix.exs
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2017-10-04 12:03:36 +0200
committerChristophe Romain <christophe.romain@process-one.net>2017-10-04 12:03:36 +0200
commit9e95150803e06e2dfbf917a4c70eb99193103c32 (patch)
tree14a944d57390548fb522631de95687ae489acab2 /mix.exs
parentFix 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.exs7
1 files changed, 6 insertions, 1 deletions
diff --git a/mix.exs b/mix.exs
index 05f0826b8..2580cf9cf 100644
--- a/mix.exs
+++ b/mix.exs
@@ -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