-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathrebar.config
40 lines (32 loc) · 988 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
36
37
38
39
40
%%% -*- mode: erlang -*-
%% Erlang compiler options
{erl_opts, [debug_info,
warnings_as_errors,
warn_export_all
%% warn_untyped_record
]}.
{erl_opts, [
debug_info,
warnings_as_errors,
warn_export_all
]}.
{xref_checks, [
undefined_function_calls
]}.
{validate_app_modules, true}.
{port_specs, [
{"priv/jsonx.so", ["c_src/jsonx.c", "c_src/decoder.c", "c_src/encoder.c"]}
,{"priv/jstream.so",["c_src/jstream.c"]}
]}.
{port_env, [
{".*", "CXXFLAGS", "$CXXFLAGS -g -Wall -Werror -O3"},
%% OS X Leopard flags for 64-bit
{"darwin9.*-64$", "CXXFLAGS", "-m64"},
{"darwin9.*-64$", "LDFLAGS", "-arch x86_64"},
%% OS X Snow Leopard flags for 32-bit
{"darwin10.*-32$", "CXXFLAGS", "-m32"},
{"darwin10.*-32$", "LDFLAGS", "-arch i386"},
%% This will merge into basho/rebar/rebar.config eventually
{"win32", "CFLAGS", "/Wall /DWIN32 /D_WINDOWS /D_WIN32 /DWINDOWS"},
{"win32", "CXXFLAGS", "-g -Wall -O3"}
]}.