]> granicus.if.org Git - ejabberd/commitdiff
Fix warning when compile with newer elixir
authorChristophe Romain <christophe.romain@process-one.net>
Wed, 4 Oct 2017 10:03:36 +0000 (12:03 +0200)
committerChristophe Romain <christophe.romain@process-one.net>
Wed, 4 Oct 2017 10:03:36 +0000 (12:03 +0200)
mix.exs

diff --git a/mix.exs b/mix.exs
index 05f0826b8b908f7cfc5ca8a7bfa1960ff96f6cd6..2580cf9cfbb6e353416d9f6b825f54f2b8f44f84 100644 (file)
--- 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