summaryrefslogtreecommitdiff
path: root/src/exxhash/rebar.config
blob: d33bd0b5fd647ed0c53093304bbf4095fdb912fa (plain)
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
{plugins, [
    pc
]}.

{project_plugins, [
    erlfmt
]}.

{provider_hooks, [
    {pre, [
        {compile, {pc, compile}},
        {clean, {pc, clean}}
    ]}
]}.

{port_specs, [
    {"priv/exxhash.so", ["c_src/*.c"]}
]}.

{port_env, [
    % Development compilation
    % {".*", "CFLAGS", "$CFLAGS -g -Wall -Werror -fPIC"}

    % Production compilation
    {"(linux|solaris|darwin|freebsd)", "CFLAGS", "$CFLAGS -Wall -Werror -DNDEBUG -O3"},
    {"win32", "CFLAGS", "$CFLAGS /O2 /DNDEBUG /Wall"}
]}.

{eunit_opts, [
    debug_info,
    verbose
]}.