开发者

How do I change CFLAGS to -g -O0 when compiling node.js from source?

开发者 https://www.devze.com 2023-03-25 18:26 出处:网络
I tried: CFLAGS=\"-g -O0\" ./configure But it\'s still using the default flags -g -O3 when开发者_运维技巧 make.

I tried:

CFLAGS="-g -O0" ./configure

But it's still using the default flags -g -O3 when开发者_运维技巧 make.

Any way to work around?


./configure --debug

That automatically builds with -g -O0

Or you can edit wscript in the root directory of the node source tree, search and edit the line with "O3" in it, and re-run configure. That will build your source tree with the arguments you want, but without -Wall -Wextra -DDEBUG. Just in case that's what you want.

p.s. I found this out by: find . -type f -print0 | xargs -0 grep "O3" and running a couple of simple experiments.

0

精彩评论

暂无评论...
验证码 换一张
取 消