diff options
author | Jay Doane <jay.s.doane@gmail.com> | 2018-03-08 16:32:54 -0800 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2018-03-09 11:46:28 +0100 |
commit | b58021e6d9751fa36a4164974664e86248d444fd (patch) | |
tree | 32896f98a9abfee9f86d6799eccd0249e6c8f9f8 /rebar.config.script | |
parent | 817b2b6f5f0883092df60c1ec8ec7ec6d6094a23 (diff) | |
download | couchdb-b58021e6d9751fa36a4164974664e86248d444fd.tar.gz |
Introduce bin_opt_info erl_opts compilation option
As discussed in
http://erlang.org/doc/efficiency_guide/binaryhandling.html, the
bin_opt_info option can have the compiler print information about
binary optimizations. Typically, it issues warnings about code that
can not be optimized. For example, with the option enabled, it warns
about this line of code (among many others) like this:
src/chttpd/src/chttpd_auth_cache.erl:183:
Warning: NOT OPTIMIZED: sub binary is used or returned
Not only should having this option enabled draw awareness to existing
sub-optimal binary constructs, it should help developers avoid
creating new ones.
Diffstat (limited to 'rebar.config.script')
-rw-r--r-- | rebar.config.script | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rebar.config.script b/rebar.config.script index a52350fc8..7fb699922 100644 --- a/rebar.config.script +++ b/rebar.config.script @@ -92,7 +92,7 @@ AddConfig = [ {deps, lists:map(MakeDep, DepDescs)}, {sub_dirs, SubDirs}, {lib_dirs, ["src"]}, - {erl_opts, [debug_info, {i, "../"}]}, + {erl_opts, [bin_opt_info, debug_info, {i, "../"}]}, {eunit_opts, [verbose]}, {plugins, [eunit_plugin]}, {dialyzer, [ |