Closed Zabrane closed 1 month ago
Hi @tsloughter
Would it be possible to drop -g flag from pc_port_env.erl?
-g
Keeping -g in the default settings leads to super large .so.
.so
Here in a NIF example (cuckoo hashing):
# with "-g" priv/cuckoo_hash.so -> 6.8M # without "-g" priv/cuckoo_hash.so -> 1.4M
If one wants to add debugging symbols, CFLAGS + LDFLAGS are there...thanks to port_compiler.
CFLAGS + LDFLAGS
port_compiler
Many thanks /Z
I'd be fine with that. Can you send a PR? Then we'll want to let it wait for a day or two for comment.
Done.
Hi @tsloughter
Would it be possible to drop
-g
flag from pc_port_env.erl?Keeping
-g
in the default settings leads to super large.so
.Here in a NIF example (cuckoo hashing):
If one wants to add debugging symbols,
CFLAGS + LDFLAGS
are there...thanks toport_compiler
.Many thanks /Z