This is an automated email from the ASF dual-hosted git repository. kocolosk pushed a commit to branch update-toolchain in repository https://gitbox.apache.org/repos/asf/couchdb-khash.git
commit 383aaa4415bada73b978fc03265e3189d52c1ce3 Author: Adam Kocoloski <[email protected]> AuthorDate: Wed Nov 17 10:00:21 2021 -0500 Add rebar3 compatibility --- .gitignore | 2 ++ rebar.config | 20 ++++++++++++++++++++ rebar.lock | 1 + 3 files changed, 23 insertions(+) diff --git a/.gitignore b/.gitignore index 9fecffb..7582899 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,5 @@ test/*.beam priv/*.so vc*.pdb compile_commands.json +_build/ +c_src/*.d diff --git a/rebar.config b/rebar.config index 6d77caa..6d47a79 100644 --- a/rebar.config +++ b/rebar.config @@ -1,3 +1,18 @@ +{plugins, [ + pc +]}. + +{project_plugins, [ + erlfmt +]}. + +{provider_hooks, [ + {pre, [ + {compile, {pc, compile}}, + {clean, {pc, clean}} + ]} +]}. + {port_specs, [ {"priv/khash.so", ["c_src/*.c"]} ]}. @@ -10,3 +25,8 @@ {"(linux|solaris|darwin|freebsd)", "CFLAGS", "$CFLAGS -Wall -Werror -DNDEBUG -O3"}, {"win32", "CFLAGS", "$CFLAGS /O2 /DNDEBUG /Wall"} ]}. + +{eunit_opts, [ + debug_info, + verbose +]}. diff --git a/rebar.lock b/rebar.lock new file mode 100644 index 0000000..57afcca --- /dev/null +++ b/rebar.lock @@ -0,0 +1 @@ +[].
