chore: add maybe feature enable on rabbitmq_bridge

This commit is contained in:
zhongwencool 2024-02-05 11:06:38 +08:00
parent d65e84e46b
commit 3e599e5d8e
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
%% -*- mode: erlang; -*-
{erl_opts, [debug_info]}.
{erl_opts, [debug_info, {feature, maybe_expr, enable}]}.
{deps, [
%% The following two are dependencies of rabbit_common
{thoas, {git, "https://github.com/emqx/thoas.git", {tag, "v1.0.0"}}},

View File

@ -1188,10 +1188,10 @@ case "${COMMAND}" in
esac
case "$COMMAND" in
foreground)
FOREGROUNDOPTIONS="-noshell -noinput +Bd"
FOREGROUNDOPTIONS="-enable-feature maybe_expr -noshell -noinput +Bd"
;;
*)
FOREGROUNDOPTIONS=''
FOREGROUNDOPTIONS='-enable-feature maybe_expr'
;;
esac

2
build
View File

@ -136,7 +136,7 @@ make_docs() {
local docdir="_build/docgen/$PROFILE"
mkdir -p "$docdir"
# shellcheck disable=SC2086
erl -noshell -eval \
erl -enable-feature maybe_expr -noshell -eval \
"ok = emqx_conf:dump_schema('$docdir', $SCHEMA_MODULE), \
halt(0)."
local desc="$docdir/desc.en.hocon"