Skip to content

Commit 7c0c7ba

Browse files
committed
deps: fix gyp configuration for v8-inspector
Cross-compiled builds need different toolsets. PR-URL: #10992 Reviewed-By: Ben Noordhuis <[email protected]>
1 parent 00a2aa0 commit 7c0c7ba

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

deps/v8/src/inspector/inspector.gyp

+28
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
'targets': [
1414
{ 'target_name': 'inspector_injected_script',
1515
'type': 'none',
16+
'conditions': [
17+
['want_separate_host_toolset==1', {
18+
'toolsets': ['host', 'target'],
19+
}, {
20+
'toolsets': ['target'],
21+
}]
22+
],
1623
'actions': [
1724
{
1825
'action_name': 'convert_js_to_cpp_char_array',
@@ -37,6 +44,13 @@
3744
},
3845
{ 'target_name': 'inspector_debugger_script',
3946
'type': 'none',
47+
'conditions': [
48+
['want_separate_host_toolset==1', {
49+
'toolsets': ['host', 'target'],
50+
}, {
51+
'toolsets': ['target'],
52+
}]
53+
],
4054
'actions': [
4155
{
4256
'action_name': 'convert_js_to_cpp_char_array',
@@ -61,6 +75,13 @@
6175
},
6276
{ 'target_name': 'protocol_compatibility',
6377
'type': 'none',
78+
'conditions': [
79+
['want_separate_host_toolset==1', {
80+
'toolsets': ['host', 'target'],
81+
}, {
82+
'toolsets': ['target'],
83+
}]
84+
],
6485
'actions': [
6586
{
6687
'action_name': 'protocol_compatibility',
@@ -83,6 +104,13 @@
83104
{ 'target_name': 'protocol_generated_sources',
84105
'type': 'none',
85106
'dependencies': [ 'protocol_compatibility' ],
107+
'conditions': [
108+
['want_separate_host_toolset==1', {
109+
'toolsets': ['host', 'target'],
110+
}, {
111+
'toolsets': ['target'],
112+
}]
113+
],
86114
'actions': [
87115
{
88116
'action_name': 'protocol_generated_sources',

0 commit comments

Comments
 (0)