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:
```
([email protected])1> couch_db:module_info(compile).
[{version,"7.6.7"}]
```
Without compiler options:
```
([email protected])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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]