diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp index 129339f57c6434..771c64648b1c49 100644 --- a/tools/v8_gypfiles/v8.gyp +++ b/tools/v8_gypfiles/v8.gyp @@ -641,12 +641,12 @@ }], ['v8_enable_webassembly==1', { 'conditions': [ - ['OS=="mac" or (host_arch=="x64" and OS=="linux")', { + ['OS=="mac" or (_toolset=="host" and host_arch=="x64" and OS=="linux")', { 'sources': [ '<(V8_ROOT)/src/trap-handler/handler-inside-posix.h', ], }], - ['host_arch=="x64" and (OS=="linux" or OS=="mac" or OS=="win")', { + ['_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', ], @@ -868,19 +868,19 @@ 'conditions': [ ['v8_enable_webassembly==1', { 'conditions': [ - ['OS=="mac" or (host_arch=="x64" and OS=="linux")', { + ['OS=="mac" or (_toolset=="host" and host_arch=="x64" and OS=="linux")', { 'sources': [ '<(V8_ROOT)/src/trap-handler/handler-inside-posix.cc', '<(V8_ROOT)/src/trap-handler/handler-outside-posix.cc', ], }], - ['host_arch=="x64" and OS=="win"', { + ['_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', ], }], - ['host_arch=="x64" and (OS=="linux" or OS=="mac" or OS=="win")', { + ['_toolset=="host" and host_arch=="x64" and (OS=="linux" or OS=="mac" or OS=="win")', { 'sources': [ '<(V8_ROOT)/src/trap-handler/handler-outside-simulator.cc', ],