mirror of https://github.com/nodejs/node.git
build: enable V8's trap handler on Windows
It can now be compiled with MSVC. PR-URL: https://github.com/nodejs/node/pull/44741 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
4860ad99b9
commit
53f73d1cfe
|
@ -621,8 +621,7 @@
|
|||
'<(V8_ROOT)/src/trap-handler/handler-inside-posix.h',
|
||||
],
|
||||
}],
|
||||
# TODO(targos): Replace False with OS=="win" if handler-outside-simulator.cc becomes compatible with MSVC.
|
||||
['_toolset=="host" and host_arch=="x64" and (OS=="linux" or OS=="mac" or False)', {
|
||||
['_toolset=="host" and host_arch=="x64" and (OS=="linux" or OS=="mac" or OS=="win")', {
|
||||
'sources': [
|
||||
'<(V8_ROOT)/src/trap-handler/trap-handler-simulator.h',
|
||||
],
|
||||
|
@ -858,16 +857,14 @@
|
|||
'<(V8_ROOT)/src/trap-handler/handler-outside-posix.cc',
|
||||
],
|
||||
}],
|
||||
# TODO(targos): Replace False with OS=="win" if handler-outside-simulator.cc becomes compatible with MSVC.
|
||||
['_toolset=="host" and host_arch=="x64" and False', {
|
||||
['_toolset=="host" and host_arch=="x64" and OS=="win"', {
|
||||
'sources': [
|
||||
'<(V8_ROOT)/src/trap-handler/handler-inside-win.cc',
|
||||
'<(V8_ROOT)/src/trap-handler/handler-outside-win.cc',
|
||||
],
|
||||
}],
|
||||
# TODO(targos): Replace False with OS=="win" if handler-outside-simulator.cc becomes compatible with MSVC.
|
||||
['_toolset=="host" and host_arch=="x64" and '
|
||||
'(host_os=="linux" or host_os=="mac" or False)', {
|
||||
'(host_os=="linux" or host_os=="mac" or OS=="win")', {
|
||||
'sources': [
|
||||
'<(V8_ROOT)/src/trap-handler/handler-outside-simulator.cc',
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue