Ensure compression (lz4) support when building from src

This commit is contained in:
Ulf Wiger 2020-10-19 11:26:49 +02:00
parent 35c79aaa32
commit 2b96f189fd

View File

@ -1,4 +1,11 @@
%% -*- erlang-mode -*- %% -*- 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 case os:getenv("DEBUG") of
"true" -> "true" ->
Opts = proplists:get_value(erl_opts, CONFIG, []), Opts = proplists:get_value(erl_opts, CONFIG, []),