From 2b96f189fd4b51db5348919287f99049308c3799 Mon Sep 17 00:00:00 2001 From: Ulf Wiger Date: Mon, 19 Oct 2020 11:26:49 +0200 Subject: [PATCH] Ensure compression (lz4) support when building from src --- rebar.config.script | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rebar.config.script b/rebar.config.script index 01c1b67..413b50d 100644 --- a/rebar.config.script +++ b/rebar.config.script @@ -1,4 +1,11 @@ %% -*- erlang-mode -*- +case os:getenv("ERLANG_ROCKSDB_OPTS") of + false -> + true = os:putenv("ERLANG_ROCKSDB_OPTS", "-DWITH_BUNDLE_LZ4=ON"); + _ -> + %% If manually set, we assume it's throught through + skip +end. case os:getenv("DEBUG") of "true" -> Opts = proplists:get_value(erl_opts, CONFIG, []),