lmdb-erl/rebar.config

41 lines
1.1 KiB
Text
Raw Permalink Normal View History

2012-09-30 17:42:44 +00:00
%% -*- erlang -*-
%% ex: ft=erlang ts=4 sw=4 et
2012-09-30 17:42:44 +00:00
2015-03-31 22:15:20 +00:00
{require_otp_vsn, "R1[56]|1[78]"}.
{cover_enabled, true}.
{erl_opts, [%{d,'DEBUG',true},
2012-09-30 17:42:44 +00:00
debug_info,
warn_unused_vars,
warn_export_all,
warn_shadow_vars,
warn_unused_import,
warn_unused_function,
warn_bif_clash,
warn_unused_record,
warn_deprecated_function,
warn_obsolete_guard,
warn_export_vars,
warn_exported_vars,
2013-05-19 17:33:19 +00:00
warn_untyped_record
%warn_missing_spec,
2013-05-19 14:49:55 +00:00
%strict_validation,
%fail_on_warning
]}.
{xref_checks, [undefined_function_calls, deprecated_function_calls]}.
{eunit_opts, [verbose, {report, {eunit_surefire, [{dir, "."}]}}]}.
2012-09-30 17:42:44 +00:00
{port_specs, [
2013-05-19 17:33:19 +00:00
{"priv/lmdb.so", ["c_src/*.c"]}
2012-09-30 17:42:44 +00:00
]}.
{port_env, [
2015-03-31 22:15:20 +00:00
{"DRV_CFLAGS", "$DRV_CFLAGS -O3 -fPIC -march=native -mtune=native -Wall -Wextra"}
2012-09-30 17:42:44 +00:00
]}.
% for debugging use
% {"DRV_CFLAGS", "$DRV_CFLAGS -DMDB_DEBUG=2 -DMDB_PARANOID -DDEBUG -O0 -fPIC -Wall -Wextra -Werror"}