Skip to content

Commit

Permalink
Add a plugin to trigger the port compiler when compiling using rebar3
Browse files Browse the repository at this point in the history
- rebar3 uses a plugin for the port compiler and needs extra config.
  • Loading branch information
tpodowd committed Jan 16, 2017
1 parent 43f0eb8 commit 0b103b2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions rebar.config
Original file line number Diff line number Diff line change
@@ -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++
Expand Down

0 comments on commit 0b103b2

Please sign in to comment.