forked from band115/ecirca
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrebar.config
More file actions
20 lines (18 loc) · 1 KB
/
rebar.config
File metadata and controls
20 lines (18 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
%% -*- erlang -*-
%% Erlang releases after 17 don't put R in front of their name
{erl_opts, [{platform_define, "^[0-9]+", namespaced_arrays},
debug_info,
warnings_as_errors]}.
%% FIXME(Sergei): remove this, once Travis updates its 'rebar' version.
{so_specs, [{"priv/ecirca_small.so", ["c_src/ecirca_small.o"]},
{"priv/ecirca_medium.so", ["c_src/ecirca_medium.o"]},
{"priv/ecirca_large.so", ["c_src/ecirca_large.o"]}]}.
{port_specs, [{"priv/ecirca_small.so", ["c_src/ecirca_small.c"]},
{"priv/ecirca_medium.so", ["c_src/ecirca_medium.c"]},
{"priv/ecirca_large.so", ["c_src/ecirca_large.c"]}]}.
{port_env, [{"darwin", "CC", "clang"},
%% unfortunately, R17.2 produces warnings on compilation by
%% itself (error in ERL_NIF_INIT).
%% {"CFLAGS", "$CFLAGS -std=c99 -Wall -Wextra -Werror -pedantic"}]}.
{"CFLAGS", "$CFLAGS -std=c99 -Wall -Wextra -pedantic"}]}.
{pre_hooks, [{compile, "./priv/codegen.sh"}]}.