-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathrebar.config
30 lines (23 loc) · 1.07 KB
/
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
{cover_enabled, true}.
{erl_opts, [warnings_as_errors]}.
{deps, [
{hex, ".*", {git, "git://github.com/b/hex", "HEAD"}}
]}.
{port_specs, [
{"-32-unix$", "priv/sha3_nifs.so", ["c_src/*.c", "c_src/opt32/*.c"]},
{"-64-unix$", "priv/sha3_nifs.so", ["c_src/*.c", "c_src/opt64/*.c"]}
]}.
{port_env, [
%% Make sure to link -lstdc++ on linux or solaris
{"(linux|solaris)", "CXXFLAGS", "-O2"},
{"(linux|solaris)", "LDFLAGS", "$LDFLAGS -lstdc++"},
%% OS X Leopard flags for 64-bit
{"darwin9\.*-64-unix", "CXXFLAGS", "-O2 -m64"},
{"darwin9\.*-64-unix", "LDFLAGS", "-arch x86_64 -lstdc++"},
%% OS X Snow Leopard flags for 32-bit
{"darwin1?\.*-32-unix", "CXXFLAGS", "-O2 -m32"},
{"darwin1?\.*-32-unix", "LDFLAGS", "-arch i386"},
%% OS X Snow Leopard/Lion flags for 64-bit
{"darwin1?\.*-64-unix", "CXXFLAGS", "-O2 -m64"},
{"darwin1?\.*-64-unix", "LDFLAGS", "-arch x86_64"}
]}.