我正在尝试编译一个默认发布的模块,我在buinding.gyp设置了
'target_defaults': {
'default_configuration': 'Release'
},
但我总是得到BuildType=的“调试”
gyp info it worked if it ends with ok
gyp info using node-gyp@0.8.4
gyp info using node@0.8.12 | linux | x64
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Debug', '-C', 'build' ]
make: Entering directory `/home/ammarch/colaboration/node-webworker-threads/build'
make: Nothing to be done for `all'.
make: Leaving directory `/home/ammarch/colaboration/node-webworker-threads/build'
gyp info ok
发布于 2013-02-28 03:21:47
检查package.json scripts
如果您有--debug
,这将强制进行调试构建。
"scripts": {
"install": "node-gyp --debug rebuild",
"test": "mocha tests"
},
删除--debug
应该可以解决这个问题。
https://stackoverflow.com/questions/15119622
复制相似问题