Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
build: make default_configuration consistent with BUILDTYPE
Browse files Browse the repository at this point in the history
  • Loading branch information
Shigeki Ohtsu authored and bnoordhuis committed Feb 23, 2012
1 parent b92a919 commit 680d75a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion common.gypi
Expand Up @@ -10,7 +10,6 @@
},

'target_defaults': {
'default_configuration': 'Debug',
'configurations': {
'Debug': {
'defines': [ 'DEBUG', '_DEBUG' ],
Expand Down
1 change: 1 addition & 0 deletions configure
Expand Up @@ -189,6 +189,7 @@ def configure_node(o):
o['variables']['node_install_waf'] = b(not options.without_waf)
o['variables']['host_arch'] = host_arch()
o['variables']['target_arch'] = options.dest_cpu or target_arch()
o['default_configuration'] = 'Debug' if options.debug else 'Release'

# TODO move to node.gyp
if sys.platform == 'sunos5':
Expand Down
2 changes: 2 additions & 0 deletions tools/gyp_addon
Expand Up @@ -12,8 +12,10 @@ if __name__ == '__main__':
args = sys.argv[1:]
addon_gypi = os.path.join(node_root, 'tools', 'addon.gypi')
common_gypi = os.path.join(node_root, 'common.gypi')
config_gypi = os.path.join(node_root, 'config.gypi')
args.extend(['-I', addon_gypi])
args.extend(['-I', common_gypi])
args.extend(['-I', config_gypi])
args.extend(['-Dlibrary=shared_library'])
args.extend(['-Dvisibility=default'])
args.extend(['-Dnode_root_dir=%s' % node_root])
Expand Down

0 comments on commit 680d75a

Please sign in to comment.