0

我正在尝试将模块编译为默认发布,我在 buinding.gyp 设置

  'target_defaults': {
    'default_configuration': 'Release'
   },

但我总是得到 BuildType="Debug"

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 
4

1 回答 1

0

检查 package.json scripts

如果你--debug在那里,无论如何这将强制进行调试构建。

"scripts": {
  "install": "node-gyp --debug rebuild",
  "test": "mocha tests"
},

删除--debug应该修复它。

于 2013-02-27T19:21:46.600 回答