Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
build: fixing build break
Browse files Browse the repository at this point in the history
  • Loading branch information
kfarnung committed Jan 10, 2018
1 parent 4ad60a2 commit 53dbd53
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions node.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,6 @@
'src/js_stream.cc',
'src/module_wrap.cc',
'src/node.cc',
'src/node_api.h',
'src/node_api_types.h',
'src/node_buffer.cc',
'src/node_config.cc',
'src/node_constants.cc',
Expand Down Expand Up @@ -243,6 +241,8 @@
'src/js_stream.h',
'src/module_wrap.h',
'src/node.h',
'src/node_api.h',
'src/node_api_types.h',
'src/node_buffer.h',
'src/node_constants.h',
'src/node_debug_options.h',
Expand Down Expand Up @@ -358,7 +358,13 @@
'NODE_PLATFORM="win32"',
'_UNICODE=1',
],
'libraries': [ '-lpsapi.lib' ]
'libraries': [ '-lpsapi.lib' ],
'conditions': [
# this is only necessary for chakra on windows because chakra is dynamically linked on windows
[ 'node_engine=="chakracore"', {
'libraries': [ '-ldbghelp.lib' ],
}],
],
}, { # POSIX
'defines': [ '__POSIX__' ],
'sources': [ 'src/backtrace_posix.cc' ],
Expand Down Expand Up @@ -935,6 +941,12 @@
'libraries': [
'<(OBJ_PATH)<(OBJ_SEPARATOR)backtrace_win32.<(OBJ_SUFFIX)',
],
'conditions': [
# this is only necessary for chakra on windows because chakra is dynamically linked on windows
[ 'node_engine=="chakracore"', {
'libraries': [ '-ldbghelp.lib' ],
}],
],
}, {
'libraries': [
'<(OBJ_PATH)<(OBJ_SEPARATOR)backtrace_posix.<(OBJ_SUFFIX)',
Expand Down Expand Up @@ -997,14 +1009,7 @@
],
}]]
}],
],
'msvs_settings': {
'VCLinkerTool': {
'SubSystem': 1, # /subsystem:console
},
},


]
}
], # end targets

Expand Down

0 comments on commit 53dbd53

Please sign in to comment.