mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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>
This commit is contained in:
@@ -280,7 +280,11 @@
|
||||
'-std:c++17'
|
||||
],
|
||||
'BufferSecurityCheck': 'true',
|
||||
'DebugInformationFormat': 1, # /Z7 embed info in .obj files
|
||||
'target_conditions': [
|
||||
['_toolset=="target"', {
|
||||
'DebugInformationFormat': 1 # /Z7 embed info in .obj files
|
||||
}],
|
||||
],
|
||||
'ExceptionHandling': 0, # /EHsc
|
||||
'MultiProcessorCompilation': 'true',
|
||||
'StringPooling': 'true', # pool string literals
|
||||
|
||||
@@ -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': {
|
||||
|
||||
Reference in New Issue
Block a user