Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试过了:
CFLAGS="-g -O0" ./configure
但它仍然使用默认标志-g -O3when make.
-g -O3
make
有什么办法解决吗?
./configure --debug
自动构建-g -O0
-g -O0
或者你可以wscript在节点源码树的根目录下编辑,搜索并编辑其中有“O3”的那一行,然后重新运行configure。这将使用您想要的参数构建您的源代码树,但没有 -Wall -Wextra -DDEBUG. 以防万一那是你想要的。
wscript
-Wall -Wextra -DDEBUG
ps 我通过以下方式发现了这一点:find . -type f -print0 | xargs -0 grep "O3"并运行了几个简单的实验。
find . -type f -print0 | xargs -0 grep "O3"