如何使用调试符号制作node-waf构建二进制文件?
使用 --verbose 运行 node-waf 显示它使用了 -g 的 g++。看来是默认了。我找不到一种明显的方法来告诉 node-waf 在没有调试符号的情况下构建 node.js 扩展。有直接的方法吗?
编辑:我知道如何添加编译器选项。问题是如何删除某个选项?
Running node-waf with --verbose shows it uses g++ with -g. It seems to be default. I can't find an obvious way to tell node-waf to build node.js extensions without debug symbols. Is there a straight forward way?
Edit: I know how to add compiler options. The question would be how to remove a certain option?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我自己找到了解决方案。不确定这是否是最好的解决方案。只需覆盖 CXXFLAGS 似乎就可以满足我的要求。
I found the solution myself. Not sure whether this is the best solution. Just overwriting the CXXFLAGS seems to do what I want.