From ffefa8979a3de2f92a945c5efd98fa17a37364e7 Mon Sep 17 00:00:00 2001 From: StefanStojanovic Date: Sun, 13 Nov 2022 11:46:36 +0100 Subject: [PATCH] Revert "build: remove precompiled header and debug information for host builds" This reverts commit 818284b68737bbb9098cf12b1b221cbb24f06ce8. Reverted commit is a no longer needed patch for ARM64 cross-compiling. It was increasing cross-compile time drastically (~3 times longer). --- common.gypi | 6 +----- tools/v8_gypfiles/v8.gyp | 12 +++++------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/common.gypi b/common.gypi index da2e7b0462dfa9..83c63b737c1149 100644 --- a/common.gypi +++ b/common.gypi @@ -283,11 +283,7 @@ '-std:c++17' ], 'BufferSecurityCheck': 'true', - 'target_conditions': [ - ['_toolset=="target"', { - 'DebugInformationFormat': 1 # /Z7 embed info in .obj files - }], - ], + 'DebugInformationFormat': 1, # /Z7 embed info in .obj files 'ExceptionHandling': 0, # /EHsc 'MultiProcessorCompilation': 'true', 'StringPooling': 'true', # pool string literals diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp index fdbac3bd1af8aa..4a1463f500ad7b 100644 --- a/tools/v8_gypfiles/v8.gyp +++ b/tools/v8_gypfiles/v8.gyp @@ -325,7 +325,7 @@ '<(V8_ROOT)/src/builtins/builtins-intl-gen.cc', ], }], - ['OS=="win" and _toolset=="target"', { + ['OS=="win"', { 'msvs_precompiled_header': '<(V8_ROOT)/../../tools/msvs/pch/v8_pch.h', 'msvs_precompiled_source': '<(V8_ROOT)/../../tools/msvs/pch/v8_pch.cc', 'sources': [ @@ -683,7 +683,7 @@ ], 'sources': ['<@(v8_compiler_sources)'], 'conditions': [ - ['OS=="win" and _toolset=="target"', { + ['OS=="win"', { 'msvs_precompiled_header': '<(V8_ROOT)/../../tools/msvs/pch/v8_pch.h', 'msvs_precompiled_source': '<(V8_ROOT)/../../tools/msvs/pch/v8_pch.cc', 'sources': [ @@ -708,7 +708,7 @@ ], 'sources': ['<@(v8_compiler_sources)'], 'conditions': [ - ['OS=="win" and _toolset=="target"', { + ['OS=="win"', { 'msvs_precompiled_header': '<(V8_ROOT)/../../tools/msvs/pch/v8_pch.h', 'msvs_precompiled_source': '<(V8_ROOT)/../../tools/msvs/pch/v8_pch.cc', 'sources': [ @@ -908,15 +908,13 @@ '