build: support a default edition

This commit is contained in:
Zaiming (Stone) Shi 2022-02-28 17:03:42 +01:00
parent d029a73b99
commit b3745715c4
1 changed files with 4 additions and 0 deletions

View File

@ -43,7 +43,11 @@ description() ->
%% Read info from persistent_term at runtime.
%% Or meck this function to run tests for another eidtion.
-spec edition() -> ce | ee | edge.
-ifdef(EMQX_RELEASE_EDITION).
edition() -> ?EMQX_RELEASE_EDITION.
-else.
edition() -> ce.
-endif.
%% @doc Return the release version.
version() ->