Skip to content

Commit cd5c7bf

Browse files
committed
build,deps: use PCH also for v8_initializers
* rename files to represent reuse PR-URL: #25931 Reviewed-By: João Reis <[email protected]>
1 parent 82b7989 commit cd5c7bf

File tree

5 files changed

+16
-11
lines changed

5 files changed

+16
-11
lines changed

common.gypi

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
# Reset this number to 0 on major V8 upgrades.
4040
# Increment by one for each non-official patch applied to deps/v8.
41-
'v8_embedder_string': '-node.11',
41+
'v8_embedder_string': '-node.12',
4242

4343
##### V8 defaults for Node.js #####
4444

deps/v8/gypfiles/v8.gyp

+14-9
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@
222222
'dependencies': [
223223
'v8_base',
224224
],
225-
'variables': {
225+
'variables': {
226226
'optimize': 'max',
227227
},
228228
'include_dirs': [
@@ -359,16 +359,20 @@
359359
}],
360360
# Platforms that don't have Compare-And-Swap support need to link atomic
361361
# library to implement atomic memory access
362-
[ 'v8_current_cpu == "mips" or v8_current_cpu == "mipsel" or '
363-
'v8_current_cpu == "mips64" or v8_current_cpu == "mips64el" or '
364-
'v8_current_cpu == "ppc" or v8_current_cpu == "ppc64" or '
365-
'v8_current_cpu == "s390" or v8_current_cpu == "s390x"',
366-
{
362+
[ 'v8_current_cpu in ["mips", "mipsel", "mips64", "mips64el", "ppc", "ppc64", "s390", "s390x"]', {
367363
'link_settings': {
368364
'libraries': [ '-latomic', ],
369365
},
370366
},
371367
],
368+
['OS=="win" and node_use_pch == "true"', {
369+
'msvs_precompiled_header': '../../../tools/msvs/pch/v8_pch.h',
370+
'msvs_precompiled_source': '../../../tools/msvs/pch/v8_pch.cc',
371+
'sources': [
372+
'<(_msvs_precompiled_header)',
373+
'<(_msvs_precompiled_source)',
374+
],
375+
}],
372376
],
373377
}, # v8_initializers
374378
{
@@ -1942,10 +1946,11 @@
19421946
# See http://crbug.com/485155.
19431947
'msvs_shard': 4,
19441948
}, {
1945-
'msvs_precompiled_header': 'tools/msvs/pch/pch_v8_base.h',
1946-
'msvs_precompiled_source': '../../../tools/msvs/pch/pch_v8_base.cc',
1949+
'msvs_precompiled_header': '../../../tools/msvs/pch/v8_pch.h',
1950+
'msvs_precompiled_source': '../../../tools/msvs/pch/v8_pch.cc',
19471951
'sources': [
1948-
'../../../tools/msvs/pch/pch_v8_base.cc',
1952+
'<(_msvs_precompiled_header)',
1953+
'<(_msvs_precompiled_source)',
19491954
],
19501955
}],
19511956
],

tools/msvs/pch/pch_v8_base.cc

-1
This file was deleted.

tools/msvs/pch/v8_pch.cc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "v8_pch.h"
File renamed without changes.

0 commit comments

Comments
 (0)