You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2021/12/17 19:41:50 UTC
[GitHub] [couchdb] noahshaw11 commented on pull request #3880: Remove ERL_OPTS
noahshaw11 commented on pull request #3880:
URL: https://github.com/apache/couchdb/pull/3880#issuecomment-996988868
> To double-check if the compiler options work, try running
>
> ```
> make clean && ERL_COMPILER_OPTIONS='[no_line_info,deterministic,no_debug_info]' make
> ```
>
> Capture module info from some module (something like `couch_db:module_info(compile).` perhaps) then run `make clean && make` and see if the changes took effect. With `no_debug_info` there should be almost no extra info shown.
>
> Also don't forget to update the `Makefile{.win}` files since reference `ERL_OPTS` there as well.
The compiler options are taking effect.
With compiler options:
```
(node1@127.0.0.1)1> couch_db:module_info(compile).
[{version,"7.6.7"}]
```
Without compiler options:
```
(node1@127.0.0.1)1> couch_db:module_info(compile).
[{version,"7.6.7"},
{options,[debug_info,
{d,'COUCHDB_VERSION',"3.2.1-48bfdcf"},
{d,'COUCHDB_GIT_SHA',"48bfdcf"},
{d,'COUCHDB_SPIDERMONKEY_VERSION',"1.8.5"},
{i,"../"},
{d,'WITH_PROPER'},
{i,"include"}]},
{source,"/Users/ncshaw/src/couchdb/src/couch/src/couch_db.erl"}]
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org