-
Notifications
You must be signed in to change notification settings - Fork 1
/
rebar.config
32 lines (25 loc) · 845 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
{erl_opts, [{i, "src"},
warnings_as_errors,
debug_info,
{w, all},
warn_export_all]}.
{plugins, [pc]}.
{provider_hooks, [
{pre, [
{compile, {pc, compile}},
{clean, {pc, clean}}
]}
]}.
{port_specs, [
{"priv/snappyer.so", [
"c_src/*.cc"
]}
]}.
{port_env, [
{".*", "ERL_LDFLAGS", " -L$ERL_EI_LIBDIR -lei"},
{"(linux|darwin)", "CFLAGS", "$CFLAGS -O2 -finline-functions -fomit-frame-pointer -fno-strict-aliasing -Wmissing-prototypes -Wall -std=c99"},
{"(linux|darwin)", "CXXFLAGS", "$CXXFLAGS -std=c++11"},
{"win32", "DRV_LINK_CXX_TEMPLATE", "$CC $ERL_CFLAGS $PORT_IN_FILES /link /DLL /MACHINE:X64 $DRV_LDFLAGS /OUT:$PORT_OUT_FILE"}
]}.
{eunit_opts, [{report,{eunit_surefire,[{dir,"."}]}}]}.
{xref_checks, [fail_on_warning, undefined_function_calls]}.