diff options
Diffstat (limited to 'src/exxhash/rebar.config')
-rw-r--r-- | src/exxhash/rebar.config | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/exxhash/rebar.config b/src/exxhash/rebar.config new file mode 100644 index 000000000..d33bd0b5f --- /dev/null +++ b/src/exxhash/rebar.config @@ -0,0 +1,32 @@ +{plugins, [ + pc +]}. + +{project_plugins, [ + erlfmt +]}. + +{provider_hooks, [ + {pre, [ + {compile, {pc, compile}}, + {clean, {pc, clean}} + ]} +]}. + +{port_specs, [ + {"priv/exxhash.so", ["c_src/*.c"]} +]}. + +{port_env, [ + % Development compilation + % {".*", "CFLAGS", "$CFLAGS -g -Wall -Werror -fPIC"} + + % Production compilation + {"(linux|solaris|darwin|freebsd)", "CFLAGS", "$CFLAGS -Wall -Werror -DNDEBUG -O3"}, + {"win32", "CFLAGS", "$CFLAGS /O2 /DNDEBUG /Wall"} +]}. + +{eunit_opts, [ + debug_info, + verbose +]}. |