2012-09-30 17:42:44 +00:00
|
|
|
%% -*- erlang -*-
|
2013-05-19 04:19:01 +00:00
|
|
|
%% 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]"}.
|
2013-05-19 04:19:01 +00:00
|
|
|
|
|
|
|
{cover_enabled, true}.
|
|
|
|
|
2013-05-19 11:25:35 +00:00
|
|
|
{erl_opts, [%{d,'DEBUG',true},
|
2012-09-30 17:42:44 +00:00
|
|
|
debug_info,
|
2013-05-19 04:19:01 +00:00
|
|
|
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
|
2013-05-19 04:19:01 +00:00
|
|
|
%warn_missing_spec,
|
2013-05-19 14:49:55 +00:00
|
|
|
%strict_validation,
|
|
|
|
%fail_on_warning
|
2013-05-19 04:19:01 +00:00
|
|
|
]}.
|
|
|
|
|
|
|
|
{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
|
|
|
]}.
|
2013-05-19 04:19:01 +00:00
|
|
|
|
|
|
|
% for debugging use
|
|
|
|
% {"DRV_CFLAGS", "$DRV_CFLAGS -DMDB_DEBUG=2 -DMDB_PARANOID -DDEBUG -O0 -fPIC -Wall -Wextra -Werror"}
|