1
0
Fork 0

Add /Z7 switch to V8 gyp (#9127)

This commit is contained in:
KVS85 2019-05-28 18:53:27 +03:00 committed by Frank Celler
parent 00fd5eebe2
commit 62d3d325e8
2 changed files with 14 additions and 1 deletions

View File

@ -123,6 +123,12 @@ if (WIN32)
MESSAGE(STATUS "Building V8 for Windows with MSBUILD") MESSAGE(STATUS "Building V8 for Windows with MSBUILD")
set(GYP_MAIN gypfiles/gyp_v8) set(GYP_MAIN gypfiles/gyp_v8)
if (USE_CLCACHE_MODE)
list(APPEND V8_GYP_ARGS "-Duse_clcache_mode=true")
else ()
list(APPEND V8_GYP_ARGS "-Duse_clcache_mode=false")
endif()
if (${CMAKE_GENERATOR} MATCHES "2013") if (${CMAKE_GENERATOR} MATCHES "2013")
# try to find 2013 in 'Visual Studio 12 2013 Win64' # try to find 2013 in 'Visual Studio 12 2013 Win64'
set(GYP_MSVS_VERSION "2013") set(GYP_MSVS_VERSION "2013")

View File

@ -88,6 +88,9 @@
# Default sysroot if no sysroot can be provided. # Default sysroot if no sysroot can be provided.
'sysroot%': '', 'sysroot%': '',
# Default clcache mode if no use_clcache_mode can be provided.
'use_clcache_mode%': 'false',
'conditions': [ 'conditions': [
# The system root for linux builds. # The system root for linux builds.
['OS=="linux" and use_sysroot==1', { ['OS=="linux" and use_sysroot==1', {
@ -943,9 +946,13 @@
'RuntimeTypeInfo': 'false', 'RuntimeTypeInfo': 'false',
'WarningLevel': '3', 'WarningLevel': '3',
'WarnAsError': 'true', 'WarnAsError': 'true',
'DebugInformationFormat': '3',
'Detect64BitPortabilityProblems': 'false', 'Detect64BitPortabilityProblems': 'false',
'conditions': [ 'conditions': [
['use_clcache_mode=="true"', {
'DebugInformationFormat': '1',
}, {
'DebugInformationFormat': '3',
}],
[ 'msvs_multi_core_compile', { [ 'msvs_multi_core_compile', {
'AdditionalOptions': ['/MP'], 'AdditionalOptions': ['/MP'],
}], }],