From 0b103b23fa06fe4cc6d8ba7980f0f5d684f47543 Mon Sep 17 00:00:00 2001 From: Thomas O'Dowd Date: Mon, 16 Jan 2017 16:45:38 +0900 Subject: [PATCH] Add a plugin to trigger the port compiler when compiling using rebar3 - rebar3 uses a plugin for the port compiler and needs extra config. --- rebar.config | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/rebar.config b/rebar.config index df0f1c2..bb8d3c0 100644 --- a/rebar.config +++ b/rebar.config @@ -1,3 +1,17 @@ +%% port compiler plugin for rebar3 +{plugins, [pc]}. + +{provider_hooks, + [ + {pre, + [ + {compile, {pc, compile}}, + {clean, {pc, clean}} + ] + } + ] +}. + {port_specs, [{"priv/ebloom_nifs.so", ["c_src/*.cpp"]}]}. {port_env, [ %% Make sure to link -lstdc++