forked from confluentinc/librdkafka
-
Notifications
You must be signed in to change notification settings - Fork 7
/
rebar.config
36 lines (27 loc) · 792 Bytes
/
rebar.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{erl_opts, [{i, "src"},
warnings_as_errors,
debug_info,
{w, all},
warn_export_all]}.
{plugins, [
{pc, {git, "https://github.com/blt/port_compiler.git", {tag, "v1.15.0"}}}
]}.
{project_plugins, [rebar3_hex]}.
{provider_hooks, [
{pre, [
{compile, {pc, compile}},
{clean, {pc, clean}}
]}
]}.
{port_specs, [
{"priv/crc32cer_nif.so", [
"c_src/*.c"
]}
]}.
{port_env, [
{".*", "ERL_LDFLAGS", " -L$ERL_EI_LIBDIR -lei"},
{"(linux|darwin)", "CFLAGS", "$CFLAGS -O3 -std=gnu99 -finline-functions -Wall -Wmissing-prototypes"},
{"win32", "CFLAGS", "$CFLAGS /LD /O2 /DNDEBUG"}
]}.
{eunit_opts, [{report,{eunit_surefire,[{dir,"."}]}}]}.
{xref_checks, [fail_on_warning, undefined_function_calls]}.