【问题标题】:node-gyp and binding,gyp not default_configuration节点 gyp 和绑定,gyp 不是 default_configuration
【发布时间】:2013-02-27 18:33:49
【问题描述】:

我正在尝试将模块编译为默认发布,我在 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 

【问题讨论】:

    标签: node.js node-gyp


    【解决方案1】:

    查看package.json scripts:

    如果你有--debug,无论如何这将强制调试构建。

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

    删除--debug 应该可以修复它。

    【讨论】:

      猜你喜欢
      • 2017-02-05
      • 1970-01-01
      • 1970-01-01
      • 2021-09-24
      • 1970-01-01
      • 1970-01-01
      • 2022-09-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多