Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNiyas Sait <niyas.sait@linaro.org>2022-04-05 15:29:08 +0300
committerGitHub <noreply@github.com>2022-04-05 15:29:08 +0300
commit818284b68737bbb9098cf12b1b221cbb24f06ce8 (patch)
treef01546abccf0f9a019bb7e5102865b8c316a7202 /tools
parent3f526c1ec9a181da9bab6e4928e7eb96d958cfaf (diff)
build: remove precompiled header and debug information for host builds
PR-URL: https://github.com/nodejs/node/pull/42538 Refs: https://github.com/nodejs/node/issues/42375 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/v8_gypfiles/v8.gyp12
1 files changed, 7 insertions, 5 deletions
diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp
index 413cfd4866e..2eab895d312 100644
--- a/tools/v8_gypfiles/v8.gyp
+++ b/tools/v8_gypfiles/v8.gyp
@@ -327,7 +327,7 @@
'<(V8_ROOT)/src/builtins/builtins-intl-gen.cc',
],
}],
- ['OS=="win"', {
+ ['OS=="win" and _toolset=="target"', {
'msvs_precompiled_header': '<(V8_ROOT)/../../tools/msvs/pch/v8_pch.h',
'msvs_precompiled_source': '<(V8_ROOT)/../../tools/msvs/pch/v8_pch.cc',
'sources': [
@@ -675,7 +675,7 @@
],
'sources': ['<@(v8_compiler_sources)'],
'conditions': [
- ['OS=="win"', {
+ ['OS=="win" and _toolset=="target"', {
'msvs_precompiled_header': '<(V8_ROOT)/../../tools/msvs/pch/v8_pch.h',
'msvs_precompiled_source': '<(V8_ROOT)/../../tools/msvs/pch/v8_pch.cc',
'sources': [
@@ -700,7 +700,7 @@
],
'sources': ['<@(v8_compiler_sources)'],
'conditions': [
- ['OS=="win"', {
+ ['OS=="win" and _toolset=="target"', {
'msvs_precompiled_header': '<(V8_ROOT)/../../tools/msvs/pch/v8_pch.h',
'msvs_precompiled_source': '<(V8_ROOT)/../../tools/msvs/pch/v8_pch.cc',
'sources': [
@@ -890,13 +890,15 @@
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_current_cpu == \\"loong64\\".*?sources \\+= ")',
],
}],
- ['OS=="win"', {
+ ['OS=="win" and _toolset=="target"', {
'msvs_precompiled_header': '<(V8_ROOT)/../../tools/msvs/pch/v8_pch.h',
'msvs_precompiled_source': '<(V8_ROOT)/../../tools/msvs/pch/v8_pch.cc',
'sources': [
'<(_msvs_precompiled_header)',
'<(_msvs_precompiled_source)',
- ],
+ ]
+ }],
+ ['OS=="win"', {
# This will prevent V8's .cc files conflicting with the inspector's
# .cpp files in the same shard.
'msvs_settings': {