diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-05-13 13:11:08 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-05-13 13:11:08 +0300 |
commit | 061d5f2380cdce9ae1e0fa94487346e0e1c67cec (patch) | |
tree | 7fc4c68f2fff25631c03044f403ae0903f1d00b7 /rebar.config.script | |
parent | Only validate certfiles if public_key:short_name_hash/1 is available (diff) |
Shut up dialyzer/xref if public_key:short_name_hash/1 is not available
Diffstat (limited to '')
-rw-r--r-- | rebar.config.script | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rebar.config.script b/rebar.config.script index 19142b9e..d2ee3121 100644 --- a/rebar.config.script +++ b/rebar.config.script @@ -141,6 +141,15 @@ ProcessVars = fun(_F, [], Acc) -> _ -> F(F, Tail, Acc) end; + (F, [{if_have_fun, MFA, Value} | Tail], Acc) -> + {Mod, Fun, Arity} = MFA, + code:ensure_loaded(Mod), + case erlang:function_exported(Mod, Fun, Arity) of + true -> + F(F, Tail, ProcessSingleVar(F, Value, Acc)); + false -> + F(F, Tail, Acc) + end; (F, [Other1 | Tail1], Acc) -> F(F, Tail1, [F(F, Other1, []) | Acc]); (F, Val, Acc) when is_tuple(Val) -> |