chore: add light dialyzer make target

for low mem dev machines
This commit is contained in:
William Yang 2022-01-07 11:05:21 +01:00
parent 1302e942c5
commit 0d37ee9588
2 changed files with 9 additions and 0 deletions

View File

@ -132,6 +132,10 @@ xref: $(REBAR)
dialyzer: $(REBAR) dialyzer: $(REBAR)
@$(REBAR) as check dialyzer @$(REBAR) as check dialyzer
.PHONY: ldialyzer
ldialyzer: $(REBAR)
@$(REBAR) as lcheck dialyzer
COMMON_DEPS := $(REBAR) get-dashboard conf-segs COMMON_DEPS := $(REBAR) get-dashboard conf-segs
## rel target is to create release package without relup ## rel target is to create release package without relup

View File

@ -163,6 +163,11 @@ profiles() ->
[ {erl_opts, common_compile_opts()} [ {erl_opts, common_compile_opts()}
, {project_app_dirs, project_app_dirs(ce)} , {project_app_dirs, project_app_dirs(ce)}
]} ]}
, {lcheck,
[ {erl_opts, common_compile_opts()}
, {project_app_dirs, project_app_dirs(ce)}
, {dialyzer, [{warnings, [unmatched_returns, error_handling]}]}
]}
, {test, , {test,
[ {deps, test_deps()} [ {deps, test_deps()}
, {erl_opts, common_compile_opts() ++ erl_opts_i(ce) } , {erl_opts, common_compile_opts() ++ erl_opts_i(ce) }