浏览代码

Merge pull request #9058 from thalesmg/mix-snk-kind

feat(mix): set `snk_kind` from `$kind` to `msg` in Mix build
Thales Macedo Garitezi 3 年之前
父节点
当前提交
8d1b58b821
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      build

+ 1 - 0
build

@@ -364,6 +364,7 @@ export_release_vars() {
   # compiling the project, so that `emqx_release.erl' picks up
   # compiling the project, so that `emqx_release.erl' picks up
   # `emqx_vsn' as if it was compiled by rebar3.
   # `emqx_vsn' as if it was compiled by rebar3.
   erl_opts+=( "{compile_info,[{emqx_vsn,\"${PKG_VSN}\"}]}" )
   erl_opts+=( "{compile_info,[{emqx_vsn,\"${PKG_VSN}\"}]}" )
+  erl_opts+=( "{d,snk_kind,msg}" )
 
 
   ERL_COMPILER_OPTIONS="[$(join , "${erl_opts[@]}")]"
   ERL_COMPILER_OPTIONS="[$(join , "${erl_opts[@]}")]"
   export ERL_COMPILER_OPTIONS
   export ERL_COMPILER_OPTIONS