Skip to content

Commit ff4adab

Browse files
committed
build,win: always build with PCH
PR-URL: #25931 Reviewed-By: João Reis <[email protected]>
1 parent 6ac80f0 commit ff4adab

File tree

5 files changed

+9
-35
lines changed

5 files changed

+9
-35
lines changed

common.gypi

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
'node_use_bundled_v8%': 'true',
2020
'node_module_version%': '',
2121
'node_with_ltcg%': '',
22-
'node_use_pch%': 'false',
2322
'node_shared_openssl%': 'false',
2423

2524
'node_tag%': '',
@@ -38,7 +37,7 @@
3837

3938
# Reset this number to 0 on major V8 upgrades.
4039
# Increment by one for each non-official patch applied to deps/v8.
41-
'v8_embedder_string': '-node.12',
40+
'v8_embedder_string': '-node.13',
4241

4342
##### V8 defaults for Node.js #####
4443

configure.py

-10
Original file line numberDiff line numberDiff line change
@@ -448,11 +448,6 @@
448448
dest='with_ltcg',
449449
help='Use Link Time Code Generation. This feature is only available on Windows.')
450450

451-
parser.add_option('--with-pch',
452-
action='store_true',
453-
dest='with_pch',
454-
help='Use Precompiled Headers (only available on Windows).')
455-
456451
intl_optgroup.add_option('--download',
457452
action='store',
458453
dest='download_list',
@@ -1070,11 +1065,6 @@ def configure_node(o):
10701065
if flavor != 'win' and options.with_ltcg:
10711066
raise Exception('Link Time Code Generation is only supported on Windows.')
10721067

1073-
if flavor == 'win':
1074-
o['variables']['node_use_pch'] = b(options.with_pch)
1075-
else:
1076-
o['variables']['node_use_pch'] = 'false'
1077-
10781068
if options.tag:
10791069
o['variables']['node_tag'] = '-' + options.tag
10801070
else:

deps/v8/gypfiles/v8.gyp

+4-13
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@
365365
},
366366
},
367367
],
368-
['OS=="win" and node_use_pch == "true"', {
368+
['OS=="win"', {
369369
'msvs_precompiled_header': '../../../tools/msvs/pch/v8_pch.h',
370370
'msvs_precompiled_source': '../../../tools/msvs/pch/v8_pch.cc',
371371
'sources': [
@@ -1936,20 +1936,11 @@
19361936
}],
19371937
['OS=="win"', {
19381938
'msvs_disabled_warnings': [4351, 4355, 4800],
1939-
'conditions': [
1940-
['node_use_pch != "true"', {
1941-
# When building Official, the .lib is too large and exceeds the 2G
1942-
# limit. This breaks it into multiple pieces to avoid the limit.
1943-
# See http://crbug.com/485155.
1944-
'msvs_shard': 4,
1945-
}, {
19461939
'msvs_precompiled_header': '../../../tools/msvs/pch/v8_pch.h',
19471940
'msvs_precompiled_source': '../../../tools/msvs/pch/v8_pch.cc',
1948-
'sources': [
1949-
'<(_msvs_precompiled_header)',
1950-
'<(_msvs_precompiled_source)',
1951-
],
1952-
}],
1941+
'sources': [
1942+
'<(_msvs_precompiled_header)',
1943+
'<(_msvs_precompiled_source)',
19531944
],
19541945
# This will prevent V8's .cc files conflicting with the inspector's
19551946
# .cpp files in the same shard.

node.gypi

+2-4
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,14 @@
6565
'NOMINMAX',
6666
'_UNICODE=1',
6767
],
68-
}, { # POSIX
69-
'defines': [ '__POSIX__' ],
70-
}],
71-
[ 'node_use_pch=="true"', {
7268
'msvs_precompiled_header': 'tools/msvs/pch/node_pch.h',
7369
'msvs_precompiled_source': 'tools/msvs/pch/node_pch.cc',
7470
'sources': [
7571
'<(_msvs_precompiled_header)',
7672
'<(_msvs_precompiled_source)',
7773
],
74+
}, { # POSIX
75+
'defines': [ '__POSIX__' ],
7876
}],
7977
[ 'node_enable_d8=="true"', {
8078
'dependencies': [ 'deps/v8/gypfiles/d8.gyp:d8' ],

vcbuild.bat

+2-6
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ set config=Release
1616
set target=Build
1717
set target_arch=x64
1818
set ltcg=
19-
set pch=1
2019
set target_env=
2120
set noprojgen=
2221
set projgen=
@@ -63,7 +62,7 @@ set doc=
6362
:next-arg
6463
if "%1"=="" goto args-done
6564
if /i "%1"=="debug" set config=Debug&goto arg-ok
66-
if /i "%1"=="release" set config=Release&set ltcg=1&set "pch="&set cctest=1&goto arg-ok
65+
if /i "%1"=="release" set config=Release&set ltcg=1&set cctest=1&goto arg-ok
6766
if /i "%1"=="clean" set target=Clean&goto arg-ok
6867
if /i "%1"=="ia32" set target_arch=x86&goto arg-ok
6968
if /i "%1"=="x86" set target_arch=x86&goto arg-ok
@@ -77,7 +76,6 @@ if /i "%1"=="sign" set sign=1&goto arg-ok
7776
if /i "%1"=="nosnapshot" set nosnapshot=1&goto arg-ok
7877
if /i "%1"=="noetw" set noetw=1&goto arg-ok
7978
if /i "%1"=="ltcg" set ltcg=1&goto arg-ok
80-
if /i "%1"=="nopch" set "pch="&goto arg-ok
8179
if /i "%1"=="licensertf" set licensertf=1&goto arg-ok
8280
if /i "%1"=="test" set test_args=%test_args% -J %common_test_suites%&set lint_cpp=1&set lint_js=1&set lint_md=1&goto arg-ok
8381
if /i "%1"=="test-ci" set test_args=%test_args% %test_ci_args% -p tap --logfile test.tap %common_test_suites%&set cctest_args=%cctest_args% --gtest_output=tap:cctest.tap&goto arg-ok
@@ -158,7 +156,6 @@ if defined build_release (
158156
set projgen=1
159157
set cctest=1
160158
set ltcg=1
161-
set "pch="
162159
)
163160

164161
if defined msi set stage_package=1
@@ -174,7 +171,6 @@ if "%config%"=="Debug" set configure_flags=%configure_flags% --debug
174171
if defined nosnapshot set configure_flags=%configure_flags% --without-snapshot
175172
if defined noetw set configure_flags=%configure_flags% --without-etw& set noetw_msi_arg=/p:NoETW=1
176173
if defined ltcg set configure_flags=%configure_flags% --with-ltcg
177-
if defined pch set configure_flags=%configure_flags% --with-pch
178174
if defined release_urlbase set configure_flags=%configure_flags% --release-urlbase=%release_urlbase%
179175
if defined download_arg set configure_flags=%configure_flags% %download_arg%
180176
if defined enable_vtune_arg set configure_flags=%configure_flags% --enable-vtune-profiling
@@ -670,7 +666,7 @@ del .used_configure_flags
670666
goto exit
671667

672668
:help
673-
echo vcbuild.bat [debug/release] [msi] [doc] [test/test-ci/test-all/test-addons/test-js-native-api/test-node-api/test-benchmark/test-internet/test-pummel/test-simple/test-message/test-tick-processor/test-known-issues/test-node-inspect/test-check-deopts/test-npm/test-async-hooks/test-v8/test-v8-intl/test-v8-benchmarks/test-v8-all] [ignore-flaky] [static/dll] [noprojgen] [projgen] [small-icu/full-icu/without-intl] [nobuild] [nosnapshot] [noetw] [ltcg] [nopch] [licensetf] [sign] [ia32/x86/x64] [vs2017] [download-all] [enable-vtune] [lint/lint-ci/lint-js/lint-js-ci/lint-md] [lint-md-build] [package] [build-release] [upload] [no-NODE-OPTIONS] [link-module path-to-module] [debug-http2] [debug-nghttp2] [clean] [cctest] [no-cctest] [openssl-no-asm]
669+
echo vcbuild.bat [debug/release] [msi] [doc] [test/test-ci/test-all/test-addons/test-js-native-api/test-node-api/test-benchmark/test-internet/test-pummel/test-simple/test-message/test-tick-processor/test-known-issues/test-node-inspect/test-check-deopts/test-npm/test-async-hooks/test-v8/test-v8-intl/test-v8-benchmarks/test-v8-all] [ignore-flaky] [static/dll] [noprojgen] [projgen] [small-icu/full-icu/without-intl] [nobuild] [nosnapshot] [noetw] [ltcg] [licensetf] [sign] [ia32/x86/x64] [vs2017] [download-all] [enable-vtune] [lint/lint-ci/lint-js/lint-js-ci/lint-md] [lint-md-build] [package] [build-release] [upload] [no-NODE-OPTIONS] [link-module path-to-module] [debug-http2] [debug-nghttp2] [clean] [cctest] [no-cctest] [openssl-no-asm]
674670
echo Examples:
675671
echo vcbuild.bat : builds release build
676672
echo vcbuild.bat debug : builds debug build

0 commit comments

Comments
 (0)