Bläddra i källkod

chore: add maybe feature enable on rabbitmq_bridge

zhongwencool 2 år sedan
förälder
incheckning
3e599e5d8e
3 ändrade filer med 4 tillägg och 4 borttagningar
  1. 1 1
      apps/emqx_bridge_rabbitmq/rebar.config
  2. 2 2
      bin/emqx
  3. 1 1
      build

+ 1 - 1
apps/emqx_bridge_rabbitmq/rebar.config

@@ -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"}}},

+ 2 - 2
bin/emqx

@@ -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
 

+ 1 - 1
build

@@ -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"