2013-07-10 11:15:16 +00:00
|
|
|
# Copyright 2013 the V8 project authors. All rights reserved.
|
2010-12-14 08:16:39 +00:00
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
# modification, are permitted provided that the following conditions are
|
|
|
|
# met:
|
|
|
|
#
|
|
|
|
# * Redistributions of source code must retain the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer.
|
|
|
|
# * Redistributions in binary form must reproduce the above
|
|
|
|
# copyright notice, this list of conditions and the following
|
|
|
|
# disclaimer in the documentation and/or other materials provided
|
|
|
|
# with the distribution.
|
|
|
|
# * Neither the name of Google Inc. nor the names of its
|
|
|
|
# contributors may be used to endorse or promote products derived
|
|
|
|
# from this software without specific prior written permission.
|
|
|
|
#
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
2011-08-25 14:50:09 +00:00
|
|
|
# Shared definitions for all V8-related targets.
|
|
|
|
|
2010-12-14 08:16:39 +00:00
|
|
|
{
|
|
|
|
'variables': {
|
2011-08-25 14:50:09 +00:00
|
|
|
'msvs_use_common_release': 0,
|
2014-07-17 09:56:58 +00:00
|
|
|
'clang%': 0,
|
2015-01-20 16:07:11 +00:00
|
|
|
'asan%': 0,
|
|
|
|
'lsan%': 0,
|
|
|
|
'msan%': 0,
|
|
|
|
'tsan%': 0,
|
|
|
|
'ubsan%': 0,
|
|
|
|
'ubsan_vptr%': 0,
|
2011-08-25 14:50:09 +00:00
|
|
|
'v8_target_arch%': '<(target_arch)',
|
2015-01-16 07:42:00 +00:00
|
|
|
'v8_host_byteorder%': '<!(python -c "import sys; print sys.byteorder")',
|
2013-04-17 08:27:40 +00:00
|
|
|
# Native Client builds currently use the V8 ARM JIT and
|
|
|
|
# arm/simulator-arm.cc to defer the significant effort required
|
|
|
|
# for NaCl JIT support. The nacl_target_arch variable provides
|
|
|
|
# the 'true' target arch for places in this file that need it.
|
|
|
|
# TODO(bradchen): get rid of nacl_target_arch when someday
|
|
|
|
# NaCl V8 builds stop using the ARM simulator
|
|
|
|
'nacl_target_arch%': 'none', # must be set externally
|
2011-08-25 14:50:09 +00:00
|
|
|
|
2013-01-23 16:29:48 +00:00
|
|
|
# Setting 'v8_can_use_vfp32dregs' to 'true' will cause V8 to use the VFP
|
|
|
|
# registers d16-d31 in the generated code, both in the snapshot and for the
|
|
|
|
# ARM target. Leaving the default value of 'false' will avoid the use of
|
|
|
|
# these registers in the snapshot and use CPU feature probing when running
|
|
|
|
# on the target.
|
|
|
|
'v8_can_use_vfp32dregs%': 'false',
|
2014-06-23 12:19:54 +00:00
|
|
|
'arm_test_noprobe%': 'off',
|
2013-01-23 16:29:48 +00:00
|
|
|
|
2011-11-09 15:31:54 +00:00
|
|
|
# Similar to vfp but on MIPS.
|
|
|
|
'v8_can_use_fpu_instructions%': 'true',
|
|
|
|
|
|
|
|
# Similar to the ARM hard float ABI but on MIPS.
|
|
|
|
'v8_use_mips_abi_hardfloat%': 'true',
|
|
|
|
|
2015-02-23 06:13:43 +00:00
|
|
|
# Force disable libstdc++ debug mode.
|
|
|
|
'disable_glibcxx_debug%': 0,
|
|
|
|
|
2012-12-14 14:27:06 +00:00
|
|
|
'v8_enable_backtrace%': 0,
|
2013-07-10 15:21:43 +00:00
|
|
|
|
2011-08-26 11:23:51 +00:00
|
|
|
# Enable profiling support. Only required on Windows.
|
|
|
|
'v8_enable_prof%': 0,
|
|
|
|
|
2012-01-18 10:17:03 +00:00
|
|
|
# Some versions of GCC 4.5 seem to need -fno-strict-aliasing.
|
|
|
|
'v8_no_strict_aliasing%': 0,
|
|
|
|
|
2011-08-25 14:50:09 +00:00
|
|
|
# Chrome needs this definition unconditionally. For standalone V8 builds,
|
|
|
|
# it's handled in build/standalone.gypi.
|
|
|
|
'want_separate_host_toolset%': 1,
|
|
|
|
|
2014-01-17 09:11:22 +00:00
|
|
|
# Toolset the d8 binary should be compiled for. Possible values are 'host'
|
|
|
|
# and 'target'. If you want to run v8 tests, it needs to be set to 'target'.
|
|
|
|
# The setting is ignored if want_separate_host_toolset is 0.
|
|
|
|
'v8_toolset_for_d8%': 'target',
|
|
|
|
|
2011-08-25 14:50:09 +00:00
|
|
|
'host_os%': '<(OS)',
|
2011-10-06 11:08:41 +00:00
|
|
|
'werror%': '-Werror',
|
2011-09-08 13:20:49 +00:00
|
|
|
# For a shared library build, results in "libv8-<(soname_version).so".
|
|
|
|
'soname_version%': '',
|
2013-07-10 16:21:17 +00:00
|
|
|
|
|
|
|
# Allow to suppress the array bounds warning (default is no suppression).
|
|
|
|
'wno_array_bounds%': '',
|
2014-07-18 10:54:33 +00:00
|
|
|
|
2015-02-10 07:26:59 +00:00
|
|
|
# Override where to find binutils
|
|
|
|
'binutils_dir%': '',
|
|
|
|
|
|
|
|
'conditions': [
|
|
|
|
['OS=="linux" and host_arch=="x64"', {
|
|
|
|
'binutils_dir%': 'third_party/binutils/Linux_x64/Release/bin',
|
|
|
|
}],
|
|
|
|
['OS=="linux" and host_arch=="ia32"', {
|
|
|
|
'binutils_dir%': 'third_party/binutils/Linux_ia32/Release/bin',
|
|
|
|
}],
|
|
|
|
|
|
|
|
# linux_use_bundled_gold: whether to use the gold linker binary checked
|
|
|
|
# into third_party/binutils. Force this off via GYP_DEFINES when you
|
|
|
|
# are using a custom toolchain and need to control -B in ldflags.
|
|
|
|
# Do not use 32-bit gold on 32-bit hosts as it runs out address space
|
|
|
|
# for component=static_library builds.
|
|
|
|
['OS=="linux" and (target_arch=="x64" or target_arch=="arm")', {
|
|
|
|
'linux_use_bundled_gold%': 1,
|
|
|
|
}, {
|
|
|
|
'linux_use_bundled_gold%': 0,
|
|
|
|
}],
|
|
|
|
# linux_use_bundled_binutils: whether to use the binary binutils
|
|
|
|
# checked into third_party/binutils. These are not multi-arch so cannot
|
|
|
|
# be used except on x86 and x86-64 (the only two architectures which
|
|
|
|
# are currently checke in). Force this off via GYP_DEFINES when you
|
|
|
|
# are using a custom toolchain and need to control -B in cflags.
|
|
|
|
['OS=="linux" and (target_arch=="ia32" or target_arch=="x64")', {
|
|
|
|
'linux_use_bundled_binutils%': 1,
|
|
|
|
}, {
|
|
|
|
'linux_use_bundled_binutils%': 0,
|
|
|
|
}],
|
|
|
|
# linux_use_gold_flags: whether to use build flags that rely on gold.
|
|
|
|
# On by default for x64 Linux.
|
|
|
|
['OS=="linux" and target_arch=="x64"', {
|
|
|
|
'linux_use_gold_flags%': 1,
|
|
|
|
}, {
|
|
|
|
'linux_use_gold_flags%': 0,
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
|
2014-08-25 07:32:29 +00:00
|
|
|
# Link-Time Optimizations
|
|
|
|
'use_lto%': 0,
|
2010-12-14 08:16:39 +00:00
|
|
|
},
|
2014-07-17 09:56:58 +00:00
|
|
|
'conditions': [
|
2015-01-16 07:42:00 +00:00
|
|
|
['host_arch=="ia32" or host_arch=="x64" or \
|
|
|
|
host_arch=="ppc" or host_arch=="ppc64" or \
|
2016-01-14 17:16:10 +00:00
|
|
|
host_arch=="s390" or host_arch=="s390x" or \
|
2015-01-16 07:42:00 +00:00
|
|
|
clang==1', {
|
2014-07-17 09:56:58 +00:00
|
|
|
'variables': {
|
|
|
|
'host_cxx_is_biarch%': 1,
|
|
|
|
},
|
|
|
|
}, {
|
|
|
|
'variables': {
|
|
|
|
'host_cxx_is_biarch%': 0,
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
['target_arch=="ia32" or target_arch=="x64" or target_arch=="x87" or \
|
2016-01-14 17:16:10 +00:00
|
|
|
target_arch=="ppc" or target_arch=="ppc64" or target_arch=="s390" or \
|
|
|
|
target_arch=="s390x" or clang==1', {
|
2014-07-17 09:56:58 +00:00
|
|
|
'variables': {
|
|
|
|
'target_cxx_is_biarch%': 1,
|
|
|
|
},
|
|
|
|
}, {
|
|
|
|
'variables': {
|
|
|
|
'target_cxx_is_biarch%': 0,
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
],
|
2010-12-14 08:16:39 +00:00
|
|
|
'target_defaults': {
|
2011-08-05 09:44:30 +00:00
|
|
|
'conditions': [
|
2012-05-22 08:10:58 +00:00
|
|
|
['v8_target_arch=="arm"', {
|
|
|
|
'defines': [
|
|
|
|
'V8_TARGET_ARCH_ARM',
|
|
|
|
],
|
2014-06-23 12:19:54 +00:00
|
|
|
'conditions': [
|
|
|
|
[ 'arm_version==7 or arm_version=="default"', {
|
|
|
|
'defines': [
|
|
|
|
'CAN_USE_ARMV7_INSTRUCTIONS',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'arm_fpu=="vfpv3-d16" or arm_fpu=="default"', {
|
|
|
|
'defines': [
|
|
|
|
'CAN_USE_VFP3_INSTRUCTIONS',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'arm_fpu=="vfpv3"', {
|
|
|
|
'defines': [
|
|
|
|
'CAN_USE_VFP3_INSTRUCTIONS',
|
|
|
|
'CAN_USE_VFP32DREGS',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'arm_fpu=="neon"', {
|
|
|
|
'defines': [
|
|
|
|
'CAN_USE_VFP3_INSTRUCTIONS',
|
|
|
|
'CAN_USE_VFP32DREGS',
|
|
|
|
'CAN_USE_NEON',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'arm_test_noprobe=="on"', {
|
|
|
|
'defines': [
|
|
|
|
'ARM_TEST_NO_FEATURE_PROBE',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
2013-06-07 10:02:42 +00:00
|
|
|
'target_conditions': [
|
|
|
|
['_toolset=="host"', {
|
|
|
|
'conditions': [
|
2015-04-09 13:38:20 +00:00
|
|
|
['v8_target_arch==host_arch', {
|
2014-07-17 09:56:58 +00:00
|
|
|
# Host built with an Arm CXX compiler.
|
2013-04-16 14:39:48 +00:00
|
|
|
'conditions': [
|
2013-12-11 11:58:07 +00:00
|
|
|
[ 'arm_version==7', {
|
2013-04-16 14:39:48 +00:00
|
|
|
'cflags': ['-march=armv7-a',],
|
|
|
|
}],
|
2013-12-11 11:58:07 +00:00
|
|
|
[ 'arm_version==7 or arm_version=="default"', {
|
2013-04-16 14:39:48 +00:00
|
|
|
'conditions': [
|
2014-05-12 09:25:32 +00:00
|
|
|
[ 'arm_fpu!="default"', {
|
|
|
|
'cflags': ['-mfpu=<(arm_fpu)',],
|
2013-04-16 14:39:48 +00:00
|
|
|
}],
|
2013-06-07 10:02:42 +00:00
|
|
|
],
|
2013-04-16 14:39:48 +00:00
|
|
|
}],
|
|
|
|
[ 'arm_float_abi!="default"', {
|
|
|
|
'cflags': ['-mfloat-abi=<(arm_float_abi)',],
|
|
|
|
}],
|
|
|
|
[ 'arm_thumb==1', {
|
|
|
|
'cflags': ['-mthumb',],
|
|
|
|
}],
|
|
|
|
[ 'arm_thumb==0', {
|
|
|
|
'cflags': ['-marm',],
|
|
|
|
}],
|
2013-06-07 10:02:42 +00:00
|
|
|
],
|
|
|
|
}, {
|
2014-07-17 09:56:58 +00:00
|
|
|
# 'v8_target_arch!=host_arch'
|
|
|
|
# Host not built with an Arm CXX compiler (simulator build).
|
2013-06-07 10:02:42 +00:00
|
|
|
'conditions': [
|
|
|
|
[ 'arm_float_abi=="hard"', {
|
|
|
|
'defines': [
|
|
|
|
'USE_EABI_HARDFLOAT=1',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'arm_float_abi=="softfp" or arm_float_abi=="default"', {
|
|
|
|
'defines': [
|
|
|
|
'USE_EABI_HARDFLOAT=0',
|
|
|
|
],
|
|
|
|
}],
|
2013-04-16 14:39:48 +00:00
|
|
|
],
|
|
|
|
}],
|
2012-05-22 08:10:58 +00:00
|
|
|
],
|
2013-06-07 10:02:42 +00:00
|
|
|
}], # _toolset=="host"
|
|
|
|
['_toolset=="target"', {
|
2013-04-16 14:39:48 +00:00
|
|
|
'conditions': [
|
2015-04-09 13:38:20 +00:00
|
|
|
['v8_target_arch==target_arch', {
|
2014-07-17 09:56:58 +00:00
|
|
|
# Target built with an Arm CXX compiler.
|
2013-04-16 14:39:48 +00:00
|
|
|
'conditions': [
|
2013-12-11 11:58:07 +00:00
|
|
|
[ 'arm_version==7', {
|
2013-06-07 10:02:42 +00:00
|
|
|
'cflags': ['-march=armv7-a',],
|
|
|
|
}],
|
2013-12-11 11:58:07 +00:00
|
|
|
[ 'arm_version==7 or arm_version=="default"', {
|
2013-06-07 10:02:42 +00:00
|
|
|
'conditions': [
|
2014-05-12 09:25:32 +00:00
|
|
|
[ 'arm_fpu!="default"', {
|
|
|
|
'cflags': ['-mfpu=<(arm_fpu)',],
|
2013-06-07 10:02:42 +00:00
|
|
|
}],
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'arm_float_abi!="default"', {
|
|
|
|
'cflags': ['-mfloat-abi=<(arm_float_abi)',],
|
|
|
|
}],
|
|
|
|
[ 'arm_thumb==1', {
|
|
|
|
'cflags': ['-mthumb',],
|
|
|
|
}],
|
|
|
|
[ 'arm_thumb==0', {
|
|
|
|
'cflags': ['-marm',],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
}, {
|
2014-07-17 09:56:58 +00:00
|
|
|
# 'v8_target_arch!=target_arch'
|
|
|
|
# Target not built with an Arm CXX compiler (simulator build).
|
2013-06-07 10:02:42 +00:00
|
|
|
'conditions': [
|
|
|
|
[ 'arm_float_abi=="hard"', {
|
2013-04-16 14:39:48 +00:00
|
|
|
'defines': [
|
2013-06-07 10:02:42 +00:00
|
|
|
'USE_EABI_HARDFLOAT=1',
|
2013-04-16 14:39:48 +00:00
|
|
|
],
|
|
|
|
}],
|
2013-06-07 10:02:42 +00:00
|
|
|
[ 'arm_float_abi=="softfp" or arm_float_abi=="default"', {
|
2013-04-16 14:39:48 +00:00
|
|
|
'defines': [
|
2013-06-07 10:02:42 +00:00
|
|
|
'USE_EABI_HARDFLOAT=0',
|
2013-04-16 14:39:48 +00:00
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
}],
|
2015-08-28 23:05:31 +00:00
|
|
|
# Disable GCC LTO for v8
|
|
|
|
# v8 is optimized for speed. Because GCC LTO merges flags at link
|
|
|
|
# time, we disable LTO to prevent any -O2 flags from taking
|
|
|
|
# precedence over v8's -Os flag. However, LLVM LTO does not work
|
|
|
|
# this way so we keep LTO enabled under LLVM.
|
|
|
|
['clang==0 and use_lto==1', {
|
2014-08-25 07:32:29 +00:00
|
|
|
'cflags!': [
|
|
|
|
'-flto',
|
|
|
|
'-ffat-lto-objects',
|
|
|
|
],
|
|
|
|
}],
|
2013-06-07 10:02:42 +00:00
|
|
|
],
|
|
|
|
}], # _toolset=="target"
|
2012-05-22 08:10:58 +00:00
|
|
|
],
|
|
|
|
}], # v8_target_arch=="arm"
|
2014-03-21 09:28:26 +00:00
|
|
|
['v8_target_arch=="arm64"', {
|
2014-02-12 09:19:30 +00:00
|
|
|
'defines': [
|
2014-03-21 09:28:26 +00:00
|
|
|
'V8_TARGET_ARCH_ARM64',
|
2014-02-12 09:19:30 +00:00
|
|
|
],
|
|
|
|
}],
|
2016-01-14 17:16:10 +00:00
|
|
|
['v8_target_arch=="s390" or v8_target_arch=="s390x"', {
|
|
|
|
'defines': [
|
|
|
|
'V8_TARGET_ARCH_S390',
|
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
['v8_target_arch=="s390x"', {
|
|
|
|
'defines': [
|
|
|
|
'V8_TARGET_ARCH_S390X',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['v8_host_byteorder=="little"', {
|
|
|
|
'defines': [
|
|
|
|
'V8_TARGET_ARCH_S390_LE_SIM',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
}], # s390
|
2015-01-16 07:42:00 +00:00
|
|
|
['v8_target_arch=="ppc" or v8_target_arch=="ppc64"', {
|
|
|
|
'defines': [
|
|
|
|
'V8_TARGET_ARCH_PPC',
|
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
['v8_target_arch=="ppc64"', {
|
|
|
|
'defines': [
|
|
|
|
'V8_TARGET_ARCH_PPC64',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['v8_host_byteorder=="little"', {
|
|
|
|
'defines': [
|
|
|
|
'V8_TARGET_ARCH_PPC_LE',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['v8_host_byteorder=="big"', {
|
|
|
|
'defines': [
|
|
|
|
'V8_TARGET_ARCH_PPC_BE',
|
|
|
|
],
|
2015-01-30 08:01:53 +00:00
|
|
|
'conditions': [
|
|
|
|
['OS=="aix"', {
|
|
|
|
# Work around AIX ceil, trunc and round oddities.
|
|
|
|
'cflags': [ '-mcpu=power5+ -mfprnd' ],
|
|
|
|
}],
|
|
|
|
['OS=="aix"', {
|
|
|
|
# Work around AIX assembler popcntb bug.
|
|
|
|
'cflags': [ '-mno-popcntb' ],
|
|
|
|
}],
|
|
|
|
],
|
2015-01-16 07:42:00 +00:00
|
|
|
}],
|
|
|
|
],
|
|
|
|
}], # ppc
|
2012-05-22 08:10:58 +00:00
|
|
|
['v8_target_arch=="ia32"', {
|
|
|
|
'defines': [
|
|
|
|
'V8_TARGET_ARCH_IA32',
|
|
|
|
],
|
|
|
|
}], # v8_target_arch=="ia32"
|
2014-05-23 16:37:27 +00:00
|
|
|
['v8_target_arch=="x87"', {
|
|
|
|
'defines': [
|
|
|
|
'V8_TARGET_ARCH_X87',
|
|
|
|
],
|
2014-06-02 11:39:44 +00:00
|
|
|
'cflags': ['-march=i586'],
|
2014-05-23 16:37:27 +00:00
|
|
|
}], # v8_target_arch=="x87"
|
2015-06-08 14:25:53 +00:00
|
|
|
['(v8_target_arch=="mips" or v8_target_arch=="mipsel" \
|
2015-09-29 17:23:44 +00:00
|
|
|
or v8_target_arch=="mips64" or v8_target_arch=="mips64el") \
|
|
|
|
and v8_target_arch==target_arch', {
|
2015-06-08 14:25:53 +00:00
|
|
|
'target_conditions': [
|
|
|
|
['_toolset=="target"', {
|
|
|
|
# Target built with a Mips CXX compiler.
|
|
|
|
'variables': {
|
|
|
|
'ldso_path%': '<!(/bin/echo -n $LDSO_PATH)',
|
|
|
|
'ld_r_path%': '<!(/bin/echo -n $LD_R_PATH)',
|
|
|
|
},
|
|
|
|
'conditions': [
|
|
|
|
['ldso_path!=""', {
|
|
|
|
'ldflags': ['-Wl,--dynamic-linker=<(ldso_path)'],
|
|
|
|
}],
|
|
|
|
['ld_r_path!=""', {
|
|
|
|
'ldflags': ['-Wl,--rpath=<(ld_r_path)'],
|
|
|
|
}],
|
2015-12-18 08:02:34 +00:00
|
|
|
[ 'clang==1', {
|
|
|
|
'cflags': ['-integrated-as'],
|
|
|
|
}],
|
2015-06-08 14:25:53 +00:00
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
}],
|
2014-04-15 16:39:21 +00:00
|
|
|
['v8_target_arch=="mips"', {
|
|
|
|
'defines': [
|
|
|
|
'V8_TARGET_ARCH_MIPS',
|
|
|
|
],
|
|
|
|
'conditions': [
|
2014-11-10 11:47:54 +00:00
|
|
|
[ 'v8_can_use_fpu_instructions=="true"', {
|
|
|
|
'defines': [
|
|
|
|
'CAN_USE_FPU_INSTRUCTIONS',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'v8_use_mips_abi_hardfloat=="true"', {
|
|
|
|
'defines': [
|
|
|
|
'__mips_hard_float=1',
|
|
|
|
'CAN_USE_FPU_INSTRUCTIONS',
|
|
|
|
],
|
|
|
|
}, {
|
|
|
|
'defines': [
|
|
|
|
'__mips_soft_float=1'
|
|
|
|
]
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
'target_conditions': [
|
|
|
|
['_toolset=="target"', {
|
|
|
|
'conditions': [
|
2015-04-09 13:38:20 +00:00
|
|
|
['v8_target_arch==target_arch', {
|
2014-11-10 11:47:54 +00:00
|
|
|
# Target built with a Mips CXX compiler.
|
2015-02-19 18:25:41 +00:00
|
|
|
'cflags': [
|
|
|
|
'-EB',
|
|
|
|
'-Wno-error=array-bounds', # Workaround https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56273
|
|
|
|
],
|
2014-04-15 16:39:21 +00:00
|
|
|
'ldflags': ['-EB'],
|
|
|
|
'conditions': [
|
|
|
|
[ 'v8_use_mips_abi_hardfloat=="true"', {
|
|
|
|
'cflags': ['-mhard-float'],
|
|
|
|
'ldflags': ['-mhard-float'],
|
|
|
|
}, {
|
|
|
|
'cflags': ['-msoft-float'],
|
|
|
|
'ldflags': ['-msoft-float'],
|
|
|
|
}],
|
2014-08-12 19:04:15 +00:00
|
|
|
['mips_arch_variant=="r6"', {
|
2014-11-10 11:47:54 +00:00
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_MIPS32R6',
|
|
|
|
'FPU_MODE_FP64',
|
|
|
|
],
|
2014-10-09 09:39:23 +00:00
|
|
|
'cflags!': ['-mfp32', '-mfpxx'],
|
2015-12-18 08:02:34 +00:00
|
|
|
'conditions': [
|
|
|
|
[ 'clang==0', {
|
|
|
|
'cflags': ['-Wa,-mips32r6'],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
'cflags': ['-mips32r6'],
|
2015-06-08 14:25:53 +00:00
|
|
|
'ldflags': ['-mips32r6'],
|
2014-08-12 19:04:15 +00:00
|
|
|
}],
|
2014-07-09 11:08:26 +00:00
|
|
|
['mips_arch_variant=="r2"', {
|
2014-11-10 11:47:54 +00:00
|
|
|
'conditions': [
|
|
|
|
[ 'mips_fpu_mode=="fp64"', {
|
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_MIPS32R2',
|
|
|
|
'FPU_MODE_FP64',
|
|
|
|
],
|
|
|
|
'cflags': ['-mfp64'],
|
|
|
|
}],
|
|
|
|
['mips_fpu_mode=="fpxx"', {
|
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_MIPS32R2',
|
|
|
|
'FPU_MODE_FPXX',
|
|
|
|
],
|
|
|
|
'cflags': ['-mfpxx'],
|
|
|
|
}],
|
|
|
|
['mips_fpu_mode=="fp32"', {
|
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_MIPS32R2',
|
|
|
|
'FPU_MODE_FP32',
|
|
|
|
],
|
|
|
|
'cflags': ['-mfp32'],
|
|
|
|
}],
|
2015-12-18 08:02:34 +00:00
|
|
|
[ 'clang==0', {
|
|
|
|
'cflags': ['-Wa,-mips32r2'],
|
|
|
|
}],
|
2014-11-10 11:47:54 +00:00
|
|
|
],
|
2015-12-18 08:02:34 +00:00
|
|
|
'cflags': ['-mips32r2'],
|
2014-10-09 09:39:23 +00:00
|
|
|
'ldflags': ['-mips32r2'],
|
2014-04-15 16:39:21 +00:00
|
|
|
}],
|
2014-07-09 11:08:26 +00:00
|
|
|
['mips_arch_variant=="r1"', {
|
2014-11-10 11:47:54 +00:00
|
|
|
'defines': [
|
|
|
|
'FPU_MODE_FP32',
|
|
|
|
],
|
2014-10-09 09:39:23 +00:00
|
|
|
'cflags!': ['-mfp64', '-mfpxx'],
|
2015-12-18 08:02:34 +00:00
|
|
|
'conditions': [
|
|
|
|
[ 'clang==0', {
|
|
|
|
'cflags': ['-Wa,-mips32'],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
'cflags': ['-mips32'],
|
2014-10-09 09:39:23 +00:00
|
|
|
'ldflags': ['-mips32'],
|
2014-08-12 19:04:15 +00:00
|
|
|
}],
|
|
|
|
['mips_arch_variant=="rx"', {
|
2014-11-10 11:47:54 +00:00
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_MIPS32RX',
|
|
|
|
'FPU_MODE_FPXX',
|
|
|
|
],
|
2014-10-09 09:39:23 +00:00
|
|
|
'cflags!': ['-mfp64', '-mfp32'],
|
2015-12-18 08:02:34 +00:00
|
|
|
'conditions': [
|
|
|
|
[ 'clang==0', {
|
|
|
|
'cflags': ['-Wa,-mips32'],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
'cflags': ['-mips32', '-mfpxx'],
|
2014-10-09 09:39:23 +00:00
|
|
|
'ldflags': ['-mips32'],
|
2014-04-15 16:39:21 +00:00
|
|
|
}],
|
|
|
|
],
|
2014-11-10 11:47:54 +00:00
|
|
|
}, {
|
|
|
|
# 'v8_target_arch!=target_arch'
|
|
|
|
# Target not built with an MIPS CXX compiler (simulator build).
|
|
|
|
'conditions': [
|
|
|
|
['mips_arch_variant=="r6"', {
|
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_MIPS32R6',
|
|
|
|
'FPU_MODE_FP64',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['mips_arch_variant=="r2"', {
|
|
|
|
'conditions': [
|
|
|
|
[ 'mips_fpu_mode=="fp64"', {
|
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_MIPS32R2',
|
|
|
|
'FPU_MODE_FP64',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['mips_fpu_mode=="fpxx"', {
|
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_MIPS32R2',
|
|
|
|
'FPU_MODE_FPXX',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['mips_fpu_mode=="fp32"', {
|
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_MIPS32R2',
|
|
|
|
'FPU_MODE_FP32',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['mips_arch_variant=="r1"', {
|
|
|
|
'defines': [
|
|
|
|
'FPU_MODE_FP32',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['mips_arch_variant=="rx"', {
|
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_MIPS32RX',
|
|
|
|
'FPU_MODE_FPXX',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
2014-04-15 16:39:21 +00:00
|
|
|
}],
|
|
|
|
],
|
2014-11-10 11:47:54 +00:00
|
|
|
}], #_toolset=="target"
|
|
|
|
['_toolset=="host"', {
|
|
|
|
'conditions': [
|
|
|
|
['mips_arch_variant=="rx"', {
|
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_MIPS32RX',
|
|
|
|
'FPU_MODE_FPXX',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['mips_arch_variant=="r6"', {
|
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_MIPS32R6',
|
|
|
|
'FPU_MODE_FP64',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['mips_arch_variant=="r2"', {
|
|
|
|
'conditions': [
|
|
|
|
['mips_fpu_mode=="fp64"', {
|
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_MIPS32R2',
|
|
|
|
'FPU_MODE_FP64',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['mips_fpu_mode=="fpxx"', {
|
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_MIPS32R2',
|
|
|
|
'FPU_MODE_FPXX',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['mips_fpu_mode=="fp32"', {
|
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_MIPS32R2',
|
|
|
|
'FPU_MODE_FP32'
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['mips_arch_variant=="r1"', {
|
|
|
|
'defines': ['FPU_MODE_FP32',],
|
|
|
|
}],
|
|
|
|
]
|
|
|
|
}], #_toolset=="host"
|
|
|
|
],
|
|
|
|
}], # v8_target_arch=="mips"
|
|
|
|
['v8_target_arch=="mipsel"', {
|
|
|
|
'defines': [
|
|
|
|
'V8_TARGET_ARCH_MIPS',
|
|
|
|
],
|
|
|
|
'conditions': [
|
2014-04-15 16:39:21 +00:00
|
|
|
[ 'v8_can_use_fpu_instructions=="true"', {
|
|
|
|
'defines': [
|
|
|
|
'CAN_USE_FPU_INSTRUCTIONS',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'v8_use_mips_abi_hardfloat=="true"', {
|
|
|
|
'defines': [
|
|
|
|
'__mips_hard_float=1',
|
|
|
|
'CAN_USE_FPU_INSTRUCTIONS',
|
|
|
|
],
|
|
|
|
}, {
|
|
|
|
'defines': [
|
|
|
|
'__mips_soft_float=1'
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
2014-11-10 11:47:54 +00:00
|
|
|
'target_conditions': [
|
|
|
|
['_toolset=="target"', {
|
|
|
|
'conditions': [
|
2015-04-09 13:38:20 +00:00
|
|
|
['v8_target_arch==target_arch', {
|
2014-11-10 11:47:54 +00:00
|
|
|
# Target built with a Mips CXX compiler.
|
2015-02-19 18:25:41 +00:00
|
|
|
'cflags': [
|
|
|
|
'-EL',
|
|
|
|
'-Wno-error=array-bounds', # Workaround https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56273
|
|
|
|
],
|
2012-05-22 08:10:58 +00:00
|
|
|
'ldflags': ['-EL'],
|
|
|
|
'conditions': [
|
|
|
|
[ 'v8_use_mips_abi_hardfloat=="true"', {
|
|
|
|
'cflags': ['-mhard-float'],
|
|
|
|
'ldflags': ['-mhard-float'],
|
|
|
|
}, {
|
|
|
|
'cflags': ['-msoft-float'],
|
|
|
|
'ldflags': ['-msoft-float'],
|
|
|
|
}],
|
2014-08-12 19:04:15 +00:00
|
|
|
['mips_arch_variant=="r6"', {
|
2014-11-10 11:47:54 +00:00
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_MIPS32R6',
|
|
|
|
'FPU_MODE_FP64',
|
|
|
|
],
|
2014-10-09 09:39:23 +00:00
|
|
|
'cflags!': ['-mfp32', '-mfpxx'],
|
2015-12-18 08:02:34 +00:00
|
|
|
'conditions': [
|
|
|
|
[ 'clang==0', {
|
|
|
|
'cflags': ['-Wa,-mips32r6'],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
'cflags': ['-mips32r6'],
|
2015-06-08 14:25:53 +00:00
|
|
|
'ldflags': ['-mips32r6'],
|
2014-08-12 19:04:15 +00:00
|
|
|
}],
|
2014-07-09 11:08:26 +00:00
|
|
|
['mips_arch_variant=="r2"', {
|
2014-11-10 11:47:54 +00:00
|
|
|
'conditions': [
|
|
|
|
[ 'mips_fpu_mode=="fp64"', {
|
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_MIPS32R2',
|
|
|
|
'FPU_MODE_FP64',
|
|
|
|
],
|
|
|
|
'cflags': ['-mfp64'],
|
|
|
|
}],
|
|
|
|
['mips_fpu_mode=="fpxx"', {
|
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_MIPS32R2',
|
|
|
|
'FPU_MODE_FPXX',
|
|
|
|
],
|
|
|
|
'cflags': ['-mfpxx'],
|
|
|
|
}],
|
|
|
|
['mips_fpu_mode=="fp32"', {
|
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_MIPS32R2',
|
|
|
|
'FPU_MODE_FP32',
|
|
|
|
],
|
|
|
|
'cflags': ['-mfp32'],
|
|
|
|
}],
|
2015-12-18 08:02:34 +00:00
|
|
|
[ 'clang==0', {
|
|
|
|
'cflags': ['-Wa,-mips32r2'],
|
|
|
|
}],
|
2014-11-10 11:47:54 +00:00
|
|
|
],
|
2015-12-18 08:02:34 +00:00
|
|
|
'cflags': ['-mips32r2'],
|
2014-10-09 09:39:23 +00:00
|
|
|
'ldflags': ['-mips32r2'],
|
2012-05-22 08:10:58 +00:00
|
|
|
}],
|
2014-07-09 11:08:26 +00:00
|
|
|
['mips_arch_variant=="r1"', {
|
2014-10-09 09:39:23 +00:00
|
|
|
'cflags!': ['-mfp64', '-mfpxx'],
|
2015-12-18 08:02:34 +00:00
|
|
|
'conditions': [
|
|
|
|
[ 'clang==0', {
|
|
|
|
'cflags': ['-Wa,-mips32'],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
'cflags': ['-mips32'],
|
2014-10-09 09:39:23 +00:00
|
|
|
'ldflags': ['-mips32'],
|
2014-08-12 19:04:15 +00:00
|
|
|
}],
|
|
|
|
['mips_arch_variant=="rx"', {
|
2014-11-10 11:47:54 +00:00
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_MIPS32RX',
|
|
|
|
'FPU_MODE_FPXX',
|
|
|
|
],
|
2014-10-09 09:39:23 +00:00
|
|
|
'cflags!': ['-mfp64', '-mfp32'],
|
2015-12-18 08:02:34 +00:00
|
|
|
'conditions': [
|
|
|
|
[ 'clang==0', {
|
|
|
|
'cflags': ['-Wa,-mips32'],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
'cflags': ['-mips32', '-mfpxx'],
|
2014-10-09 09:39:23 +00:00
|
|
|
'ldflags': ['-mips32'],
|
2014-08-12 19:04:15 +00:00
|
|
|
}],
|
2012-05-22 08:10:58 +00:00
|
|
|
['mips_arch_variant=="loongson"', {
|
2014-11-10 11:47:54 +00:00
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_LOONGSON',
|
|
|
|
'FPU_MODE_FP32',
|
|
|
|
],
|
2015-10-02 07:31:51 +00:00
|
|
|
'cflags!': ['-mfp64', '-mfpxx'],
|
2015-12-18 08:02:34 +00:00
|
|
|
'conditions': [
|
|
|
|
[ 'clang==0', {
|
|
|
|
'cflags': ['-Wa,-mips3'],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
'cflags': ['-mips3', '-mfp32'],
|
2012-05-22 08:10:58 +00:00
|
|
|
}],
|
2011-11-09 15:31:54 +00:00
|
|
|
],
|
2014-11-10 11:47:54 +00:00
|
|
|
}, {
|
|
|
|
# 'v8_target_arch!=target_arch'
|
|
|
|
# Target not built with an MIPS CXX compiler (simulator build).
|
|
|
|
'conditions': [
|
|
|
|
['mips_arch_variant=="r6"', {
|
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_MIPS32R6',
|
|
|
|
'FPU_MODE_FP64',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['mips_arch_variant=="r2"', {
|
|
|
|
'conditions': [
|
|
|
|
[ 'mips_fpu_mode=="fp64"', {
|
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_MIPS32R2',
|
|
|
|
'FPU_MODE_FP64',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['mips_fpu_mode=="fpxx"', {
|
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_MIPS32R2',
|
|
|
|
'FPU_MODE_FPXX',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['mips_fpu_mode=="fp32"', {
|
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_MIPS32R2',
|
|
|
|
'FPU_MODE_FP32',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['mips_arch_variant=="r1"', {
|
|
|
|
'defines': [
|
|
|
|
'FPU_MODE_FP32',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['mips_arch_variant=="rx"', {
|
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_MIPS32RX',
|
|
|
|
'FPU_MODE_FPXX',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['mips_arch_variant=="loongson"', {
|
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_LOONGSON',
|
|
|
|
'FPU_MODE_FP32',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
2011-11-09 15:31:54 +00:00
|
|
|
}],
|
|
|
|
],
|
2014-11-10 11:47:54 +00:00
|
|
|
}], #_toolset=="target
|
|
|
|
['_toolset=="host"', {
|
|
|
|
'conditions': [
|
|
|
|
['mips_arch_variant=="rx"', {
|
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_MIPS32RX',
|
|
|
|
'FPU_MODE_FPXX',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['mips_arch_variant=="r6"', {
|
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_MIPS32R6',
|
|
|
|
'FPU_MODE_FP64',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['mips_arch_variant=="r2"', {
|
|
|
|
'conditions': [
|
|
|
|
['mips_fpu_mode=="fp64"', {
|
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_MIPS32R2',
|
|
|
|
'FPU_MODE_FP64',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['mips_fpu_mode=="fpxx"', {
|
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_MIPS32R2',
|
|
|
|
'FPU_MODE_FPXX',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['mips_fpu_mode=="fp32"', {
|
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_MIPS32R2',
|
|
|
|
'FPU_MODE_FP32'
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['mips_arch_variant=="r1"', {
|
|
|
|
'defines': ['FPU_MODE_FP32',],
|
|
|
|
}],
|
|
|
|
['mips_arch_variant=="loongson"', {
|
|
|
|
'defines': [
|
|
|
|
'_MIPS_ARCH_LOONGSON',
|
|
|
|
'FPU_MODE_FP32',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
]
|
2010-12-14 08:16:39 +00:00
|
|
|
}],
|
2014-11-10 11:47:54 +00:00
|
|
|
],
|
|
|
|
}], # v8_target_arch=="mipsel"
|
2015-09-29 17:23:44 +00:00
|
|
|
['v8_target_arch=="mips64el" or v8_target_arch=="mips64"', {
|
2014-11-10 11:47:54 +00:00
|
|
|
'defines': [
|
|
|
|
'V8_TARGET_ARCH_MIPS64',
|
|
|
|
],
|
|
|
|
'conditions': [
|
2012-05-22 08:10:58 +00:00
|
|
|
[ 'v8_can_use_fpu_instructions=="true"', {
|
2011-04-27 14:20:21 +00:00
|
|
|
'defines': [
|
2012-05-22 08:10:58 +00:00
|
|
|
'CAN_USE_FPU_INSTRUCTIONS',
|
2011-04-27 14:20:21 +00:00
|
|
|
],
|
|
|
|
}],
|
2015-09-29 17:23:44 +00:00
|
|
|
[ 'v8_host_byteorder=="little"', {
|
|
|
|
'defines': [
|
|
|
|
'V8_TARGET_ARCH_MIPS64_LE',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'v8_host_byteorder=="big"', {
|
|
|
|
'defines': [
|
|
|
|
'V8_TARGET_ARCH_MIPS64_BE',
|
|
|
|
],
|
|
|
|
}],
|
2012-05-22 08:10:58 +00:00
|
|
|
[ 'v8_use_mips_abi_hardfloat=="true"', {
|
|
|
|
'defines': [
|
|
|
|
'__mips_hard_float=1',
|
|
|
|
'CAN_USE_FPU_INSTRUCTIONS',
|
|
|
|
],
|
|
|
|
}, {
|
|
|
|
'defines': [
|
|
|
|
'__mips_soft_float=1'
|
|
|
|
],
|
2012-03-30 15:01:11 +00:00
|
|
|
}],
|
2014-11-10 11:47:54 +00:00
|
|
|
],
|
|
|
|
'target_conditions': [
|
|
|
|
['_toolset=="target"', {
|
2014-08-12 19:04:15 +00:00
|
|
|
'conditions': [
|
2015-04-09 13:38:20 +00:00
|
|
|
['v8_target_arch==target_arch', {
|
2015-02-19 18:25:41 +00:00
|
|
|
'cflags': [
|
|
|
|
'-Wno-error=array-bounds', # Workaround https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56273
|
|
|
|
],
|
2014-07-09 11:08:26 +00:00
|
|
|
'conditions': [
|
2015-09-29 17:23:44 +00:00
|
|
|
['v8_target_arch=="mips64el"', {
|
|
|
|
'cflags': ['-EL'],
|
|
|
|
'ldflags': ['-EL'],
|
|
|
|
}],
|
|
|
|
['v8_target_arch=="mips64"', {
|
|
|
|
'cflags': ['-EB'],
|
|
|
|
'ldflags': ['-EB'],
|
|
|
|
}],
|
2014-07-09 11:08:26 +00:00
|
|
|
[ 'v8_use_mips_abi_hardfloat=="true"', {
|
|
|
|
'cflags': ['-mhard-float'],
|
|
|
|
'ldflags': ['-mhard-float'],
|
|
|
|
}, {
|
|
|
|
'cflags': ['-msoft-float'],
|
|
|
|
'ldflags': ['-msoft-float'],
|
|
|
|
}],
|
2014-07-29 18:02:26 +00:00
|
|
|
['mips_arch_variant=="r6"', {
|
2014-11-10 11:47:54 +00:00
|
|
|
'defines': ['_MIPS_ARCH_MIPS64R6',],
|
2015-12-18 08:02:34 +00:00
|
|
|
'conditions': [
|
|
|
|
[ 'clang==0', {
|
|
|
|
'cflags': ['-Wa,-mips64r6'],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
'cflags': ['-mips64r6', '-mabi=64'],
|
2015-06-08 14:25:53 +00:00
|
|
|
'ldflags': ['-mips64r6', '-mabi=64'],
|
2014-07-29 18:02:26 +00:00
|
|
|
}],
|
2014-07-09 11:08:26 +00:00
|
|
|
['mips_arch_variant=="r2"', {
|
2014-11-10 11:47:54 +00:00
|
|
|
'defines': ['_MIPS_ARCH_MIPS64R2',],
|
2015-12-18 08:02:34 +00:00
|
|
|
'conditions': [
|
|
|
|
[ 'clang==0', {
|
|
|
|
'cflags': ['-Wa,-mips64r2'],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
'cflags': ['-mips64r2', '-mabi=64'],
|
2015-06-08 14:25:53 +00:00
|
|
|
'ldflags': ['-mips64r2', '-mabi=64'],
|
2014-07-09 11:08:26 +00:00
|
|
|
}],
|
|
|
|
],
|
2014-11-10 11:47:54 +00:00
|
|
|
}, {
|
|
|
|
# 'v8_target_arch!=target_arch'
|
|
|
|
# Target not built with an MIPS CXX compiler (simulator build).
|
|
|
|
'conditions': [
|
|
|
|
['mips_arch_variant=="r6"', {
|
|
|
|
'defines': ['_MIPS_ARCH_MIPS64R6',],
|
|
|
|
}],
|
|
|
|
['mips_arch_variant=="r2"', {
|
|
|
|
'defines': ['_MIPS_ARCH_MIPS64R2',],
|
|
|
|
}],
|
|
|
|
],
|
2014-07-09 11:08:26 +00:00
|
|
|
}],
|
|
|
|
],
|
2014-11-10 11:47:54 +00:00
|
|
|
}], #'_toolset=="target"
|
|
|
|
['_toolset=="host"', {
|
|
|
|
'conditions': [
|
|
|
|
['mips_arch_variant=="r6"', {
|
|
|
|
'defines': ['_MIPS_ARCH_MIPS64R6',],
|
|
|
|
}],
|
|
|
|
['mips_arch_variant=="r2"', {
|
|
|
|
'defines': ['_MIPS_ARCH_MIPS64R2',],
|
|
|
|
}],
|
2014-07-09 11:08:26 +00:00
|
|
|
],
|
2014-11-10 11:47:54 +00:00
|
|
|
}], #'_toolset=="host"
|
2014-07-09 11:08:26 +00:00
|
|
|
],
|
|
|
|
}], # v8_target_arch=="mips64el"
|
2012-05-22 08:10:58 +00:00
|
|
|
['v8_target_arch=="x64"', {
|
|
|
|
'defines': [
|
|
|
|
'V8_TARGET_ARCH_X64',
|
|
|
|
],
|
|
|
|
'xcode_settings': {
|
|
|
|
'ARCHS': [ 'x86_64' ],
|
|
|
|
},
|
|
|
|
'msvs_settings': {
|
|
|
|
'VCLinkerTool': {
|
2012-10-25 12:18:24 +00:00
|
|
|
'StackReserveSize': '2097152',
|
2012-05-22 08:10:58 +00:00
|
|
|
},
|
|
|
|
},
|
2012-06-19 14:20:29 +00:00
|
|
|
'msvs_configuration_platform': 'x64',
|
2012-05-22 08:10:58 +00:00
|
|
|
}], # v8_target_arch=="x64"
|
2014-06-24 05:27:44 +00:00
|
|
|
['v8_target_arch=="x32"', {
|
|
|
|
'defines': [
|
|
|
|
# x32 port shares the source code with x64 port.
|
|
|
|
'V8_TARGET_ARCH_X64',
|
|
|
|
'V8_TARGET_ARCH_32_BIT',
|
|
|
|
],
|
|
|
|
'cflags': [
|
|
|
|
'-mx32',
|
|
|
|
# Inhibit warning if long long type is used.
|
|
|
|
'-Wno-long-long',
|
|
|
|
],
|
|
|
|
'ldflags': [
|
|
|
|
'-mx32',
|
|
|
|
],
|
|
|
|
}], # v8_target_arch=="x32"
|
2015-02-10 07:26:59 +00:00
|
|
|
['linux_use_gold_flags==1', {
|
|
|
|
# Newer gccs and clangs support -fuse-ld, use the flag to force gold
|
|
|
|
# selection.
|
|
|
|
# gcc -- http://gcc.gnu.org/onlinedocs/gcc-4.8.0/gcc/Optimize-Options.html
|
|
|
|
'ldflags': [ '-fuse-ld=gold', ],
|
|
|
|
}],
|
|
|
|
['linux_use_bundled_binutils==1', {
|
|
|
|
'cflags': [
|
|
|
|
'-B<!(cd <(DEPTH) && pwd -P)/<(binutils_dir)',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['linux_use_bundled_gold==1', {
|
|
|
|
# Put our binutils, which contains gold in the search path. We pass
|
|
|
|
# the path to gold to the compiler. gyp leaves unspecified what the
|
|
|
|
# cwd is when running the compiler, so the normal gyp path-munging
|
|
|
|
# fails us. This hack gets the right path.
|
|
|
|
'ldflags': [
|
|
|
|
'-B<!(cd <(DEPTH) && pwd -P)/<(binutils_dir)',
|
|
|
|
],
|
|
|
|
}],
|
2012-01-17 14:35:38 +00:00
|
|
|
['OS=="win"', {
|
|
|
|
'defines': [
|
|
|
|
'WIN32',
|
|
|
|
],
|
2014-07-30 13:54:45 +00:00
|
|
|
# 4351: VS 2005 and later are warning us that they've fixed a bug
|
|
|
|
# present in VS 2003 and earlier.
|
|
|
|
'msvs_disabled_warnings': [4351],
|
2012-05-29 10:00:57 +00:00
|
|
|
'msvs_configuration_attributes': {
|
|
|
|
'OutputDirectory': '<(DEPTH)\\build\\$(ConfigurationName)',
|
|
|
|
'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)',
|
|
|
|
'CharacterSet': '1',
|
|
|
|
},
|
2014-08-01 08:00:39 +00:00
|
|
|
}],
|
|
|
|
['OS=="win" and v8_target_arch=="ia32"', {
|
2014-07-29 14:31:12 +00:00
|
|
|
'msvs_settings': {
|
|
|
|
'VCCLCompilerTool': {
|
|
|
|
# Ensure no surprising artifacts from 80bit double math with x86.
|
|
|
|
'AdditionalOptions': ['/arch:SSE2'],
|
|
|
|
},
|
|
|
|
},
|
2012-01-17 14:35:38 +00:00
|
|
|
}],
|
2011-08-26 11:23:51 +00:00
|
|
|
['OS=="win" and v8_enable_prof==1', {
|
|
|
|
'msvs_settings': {
|
|
|
|
'VCLinkerTool': {
|
|
|
|
'GenerateMapFile': 'true',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}],
|
2015-01-20 12:53:44 +00:00
|
|
|
['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
|
|
|
|
or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \
|
|
|
|
v8_target_arch=="ia32"', {
|
|
|
|
'cflags': [
|
|
|
|
'-msse2',
|
|
|
|
'-mfpmath=sse',
|
|
|
|
'-mmmx', # Allows mmintrin.h for MMX intrinsics.
|
|
|
|
],
|
|
|
|
}],
|
2015-01-16 07:42:00 +00:00
|
|
|
['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
|
2014-01-02 07:04:05 +00:00
|
|
|
or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \
|
2014-07-17 09:56:58 +00:00
|
|
|
(v8_target_arch=="arm" or v8_target_arch=="ia32" or \
|
|
|
|
v8_target_arch=="x87" or v8_target_arch=="mips" or \
|
2016-01-14 17:16:10 +00:00
|
|
|
v8_target_arch=="mipsel" or v8_target_arch=="ppc" or \
|
|
|
|
v8_target_arch=="s390")', {
|
2012-05-21 09:01:19 +00:00
|
|
|
'target_conditions': [
|
|
|
|
['_toolset=="host"', {
|
2014-07-17 09:56:58 +00:00
|
|
|
'conditions': [
|
|
|
|
['host_cxx_is_biarch==1', {
|
2016-01-14 17:16:10 +00:00
|
|
|
'conditions': [
|
|
|
|
['host_arch=="s390" or host_arch=="s390x"', {
|
|
|
|
'cflags': [ '-m31' ],
|
|
|
|
'ldflags': [ '-m31' ]
|
|
|
|
},{
|
|
|
|
'cflags': [ '-m32' ],
|
|
|
|
'ldflags': [ '-m32' ]
|
|
|
|
}],
|
|
|
|
],
|
2014-07-17 09:56:58 +00:00
|
|
|
}],
|
|
|
|
],
|
2012-05-22 08:10:58 +00:00
|
|
|
'xcode_settings': {
|
|
|
|
'ARCHS': [ 'i386' ],
|
|
|
|
},
|
2012-05-21 09:01:19 +00:00
|
|
|
}],
|
|
|
|
['_toolset=="target"', {
|
2012-09-28 14:38:59 +00:00
|
|
|
'conditions': [
|
2014-07-17 09:56:58 +00:00
|
|
|
['target_cxx_is_biarch==1 and nacl_target_arch!="nacl_x64"', {
|
2016-01-14 17:16:10 +00:00
|
|
|
'conditions': [
|
|
|
|
['host_arch=="s390" or host_arch=="s390x"', {
|
|
|
|
'cflags': [ '-m31' ],
|
|
|
|
'ldflags': [ '-m31' ]
|
|
|
|
},{
|
|
|
|
'cflags': [ '-m32' ],
|
|
|
|
'ldflags': [ '-m32' ],
|
|
|
|
}],
|
|
|
|
],
|
2012-09-28 14:38:59 +00:00
|
|
|
}],
|
|
|
|
],
|
2012-05-22 08:10:58 +00:00
|
|
|
'xcode_settings': {
|
|
|
|
'ARCHS': [ 'i386' ],
|
|
|
|
},
|
2012-05-21 09:01:19 +00:00
|
|
|
}],
|
|
|
|
],
|
|
|
|
}],
|
2014-02-12 09:19:30 +00:00
|
|
|
['(OS=="linux" or OS=="android") and \
|
2015-01-16 07:42:00 +00:00
|
|
|
(v8_target_arch=="x64" or v8_target_arch=="arm64" or \
|
2016-01-14 17:16:10 +00:00
|
|
|
v8_target_arch=="ppc64" or v8_target_arch=="s390x")', {
|
2013-07-02 15:03:54 +00:00
|
|
|
'target_conditions': [
|
|
|
|
['_toolset=="host"', {
|
2014-03-26 18:23:34 +00:00
|
|
|
'conditions': [
|
2014-07-17 09:56:58 +00:00
|
|
|
['host_cxx_is_biarch==1', {
|
|
|
|
'cflags': [ '-m64' ],
|
|
|
|
'ldflags': [ '-m64' ]
|
2014-03-26 18:23:34 +00:00
|
|
|
}],
|
2014-07-17 09:56:58 +00:00
|
|
|
],
|
|
|
|
}],
|
|
|
|
['_toolset=="target"', {
|
|
|
|
'conditions': [
|
|
|
|
['target_cxx_is_biarch==1', {
|
|
|
|
'cflags': [ '-m64' ],
|
|
|
|
'ldflags': [ '-m64' ],
|
|
|
|
}],
|
|
|
|
]
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
|
2015-01-30 08:01:53 +00:00
|
|
|
or OS=="netbsd" or OS=="qnx" or OS=="aix"', {
|
2014-07-17 09:56:58 +00:00
|
|
|
'conditions': [
|
|
|
|
[ 'v8_no_strict_aliasing==1', {
|
|
|
|
'cflags': [ '-fno-strict-aliasing' ],
|
|
|
|
}],
|
|
|
|
], # conditions
|
|
|
|
}],
|
|
|
|
['OS=="solaris"', {
|
|
|
|
'defines': [ '__C99FEATURES__=1' ], # isinf() etc.
|
2013-07-02 15:03:54 +00:00
|
|
|
}],
|
2012-05-22 08:10:58 +00:00
|
|
|
['OS=="freebsd" or OS=="openbsd"', {
|
|
|
|
'cflags': [ '-I/usr/local/include' ],
|
|
|
|
}],
|
|
|
|
['OS=="netbsd"', {
|
|
|
|
'cflags': [ '-I/usr/pkg/include' ],
|
|
|
|
}],
|
2015-01-30 08:01:53 +00:00
|
|
|
['OS=="aix"', {
|
|
|
|
'defines': [
|
|
|
|
# Support for malloc(0)
|
|
|
|
'_LINUX_SOURCE_COMPAT=1',
|
|
|
|
'_ALL_SOURCE=1'],
|
|
|
|
'conditions': [
|
|
|
|
[ 'v8_target_arch=="ppc"', {
|
|
|
|
'ldflags': [ '-Wl,-bmaxdata:0x60000000/dsa' ],
|
|
|
|
}],
|
|
|
|
[ 'v8_target_arch=="ppc64"', {
|
|
|
|
'cflags': [ '-maix64' ],
|
|
|
|
'ldflags': [ '-maix64' ],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
}],
|
2012-01-17 14:35:38 +00:00
|
|
|
], # conditions
|
2011-08-25 14:50:09 +00:00
|
|
|
'configurations': {
|
Use abstract configurations to switch between opt debug settings
The problem is that conditions are evaluated before configuration inheritance is resolved, so we can't just define a configuration like this:
'Optdebug': {
'inherits_from': ['Debug'],
'variables': {
'v8_optimized_debug': 2,
}
}
Instead, we have to put the different settings depending on the optimization level into separate configurations, and use conditions inside the concrete configurations to inherit from the correct base class.
Common settings go in the base configuration DebugBaseCommon, and v8_optimized_debug dependent settings go into DebugBase{0,1,2}
The new Debug configuration inherits from DebugBaseCommon and DebugBase<(v8_optimized_debug), while the new configuration Optdebug inherits from DebugBaseCommon and DebugBase2.
BUG=v8:3252
R=machenbach@chromium.org, jkummerow@chromium.org
LOG=n
Review URL: https://codereview.chromium.org/224443003
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20605 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-04-09 09:54:49 +00:00
|
|
|
# Abstract configuration for v8_optimized_debug == 0.
|
|
|
|
'DebugBase0': {
|
|
|
|
'abstract': 1,
|
2011-04-27 14:20:21 +00:00
|
|
|
'msvs_settings': {
|
|
|
|
'VCCLCompilerTool': {
|
Use abstract configurations to switch between opt debug settings
The problem is that conditions are evaluated before configuration inheritance is resolved, so we can't just define a configuration like this:
'Optdebug': {
'inherits_from': ['Debug'],
'variables': {
'v8_optimized_debug': 2,
}
}
Instead, we have to put the different settings depending on the optimization level into separate configurations, and use conditions inside the concrete configurations to inherit from the correct base class.
Common settings go in the base configuration DebugBaseCommon, and v8_optimized_debug dependent settings go into DebugBase{0,1,2}
The new Debug configuration inherits from DebugBaseCommon and DebugBase<(v8_optimized_debug), while the new configuration Optdebug inherits from DebugBaseCommon and DebugBase2.
BUG=v8:3252
R=machenbach@chromium.org, jkummerow@chromium.org
LOG=n
Review URL: https://codereview.chromium.org/224443003
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20605 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-04-09 09:54:49 +00:00
|
|
|
'Optimization': '0',
|
2011-04-27 14:20:21 +00:00
|
|
|
'conditions': [
|
Use abstract configurations to switch between opt debug settings
The problem is that conditions are evaluated before configuration inheritance is resolved, so we can't just define a configuration like this:
'Optdebug': {
'inherits_from': ['Debug'],
'variables': {
'v8_optimized_debug': 2,
}
}
Instead, we have to put the different settings depending on the optimization level into separate configurations, and use conditions inside the concrete configurations to inherit from the correct base class.
Common settings go in the base configuration DebugBaseCommon, and v8_optimized_debug dependent settings go into DebugBase{0,1,2}
The new Debug configuration inherits from DebugBaseCommon and DebugBase<(v8_optimized_debug), while the new configuration Optdebug inherits from DebugBaseCommon and DebugBase2.
BUG=v8:3252
R=machenbach@chromium.org, jkummerow@chromium.org
LOG=n
Review URL: https://codereview.chromium.org/224443003
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20605 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-04-09 09:54:49 +00:00
|
|
|
['component=="shared_library"', {
|
|
|
|
'RuntimeLibrary': '3', # /MDd
|
|
|
|
}, {
|
|
|
|
'RuntimeLibrary': '1', # /MTd
|
2013-07-10 15:21:43 +00:00
|
|
|
}],
|
2011-04-27 14:20:21 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
'VCLinkerTool': {
|
Use abstract configurations to switch between opt debug settings
The problem is that conditions are evaluated before configuration inheritance is resolved, so we can't just define a configuration like this:
'Optdebug': {
'inherits_from': ['Debug'],
'variables': {
'v8_optimized_debug': 2,
}
}
Instead, we have to put the different settings depending on the optimization level into separate configurations, and use conditions inside the concrete configurations to inherit from the correct base class.
Common settings go in the base configuration DebugBaseCommon, and v8_optimized_debug dependent settings go into DebugBase{0,1,2}
The new Debug configuration inherits from DebugBaseCommon and DebugBase<(v8_optimized_debug), while the new configuration Optdebug inherits from DebugBaseCommon and DebugBase2.
BUG=v8:3252
R=machenbach@chromium.org, jkummerow@chromium.org
LOG=n
Review URL: https://codereview.chromium.org/224443003
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20605 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-04-09 09:54:49 +00:00
|
|
|
'LinkIncremental': '2',
|
|
|
|
},
|
|
|
|
},
|
2015-01-09 16:25:36 +00:00
|
|
|
'variables': {
|
|
|
|
'v8_enable_slow_dchecks%': 1,
|
|
|
|
},
|
Use abstract configurations to switch between opt debug settings
The problem is that conditions are evaluated before configuration inheritance is resolved, so we can't just define a configuration like this:
'Optdebug': {
'inherits_from': ['Debug'],
'variables': {
'v8_optimized_debug': 2,
}
}
Instead, we have to put the different settings depending on the optimization level into separate configurations, and use conditions inside the concrete configurations to inherit from the correct base class.
Common settings go in the base configuration DebugBaseCommon, and v8_optimized_debug dependent settings go into DebugBase{0,1,2}
The new Debug configuration inherits from DebugBaseCommon and DebugBase<(v8_optimized_debug), while the new configuration Optdebug inherits from DebugBaseCommon and DebugBase2.
BUG=v8:3252
R=machenbach@chromium.org, jkummerow@chromium.org
LOG=n
Review URL: https://codereview.chromium.org/224443003
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20605 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-04-09 09:54:49 +00:00
|
|
|
'conditions': [
|
|
|
|
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" or \
|
2015-01-30 08:01:53 +00:00
|
|
|
OS=="qnx" or OS=="aix"', {
|
Use abstract configurations to switch between opt debug settings
The problem is that conditions are evaluated before configuration inheritance is resolved, so we can't just define a configuration like this:
'Optdebug': {
'inherits_from': ['Debug'],
'variables': {
'v8_optimized_debug': 2,
}
}
Instead, we have to put the different settings depending on the optimization level into separate configurations, and use conditions inside the concrete configurations to inherit from the correct base class.
Common settings go in the base configuration DebugBaseCommon, and v8_optimized_debug dependent settings go into DebugBase{0,1,2}
The new Debug configuration inherits from DebugBaseCommon and DebugBase<(v8_optimized_debug), while the new configuration Optdebug inherits from DebugBaseCommon and DebugBase2.
BUG=v8:3252
R=machenbach@chromium.org, jkummerow@chromium.org
LOG=n
Review URL: https://codereview.chromium.org/224443003
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20605 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-04-09 09:54:49 +00:00
|
|
|
'cflags!': [
|
|
|
|
'-O3',
|
|
|
|
'-O2',
|
|
|
|
'-O1',
|
|
|
|
'-Os',
|
|
|
|
],
|
|
|
|
'cflags': [
|
|
|
|
'-fdata-sections',
|
|
|
|
'-ffunction-sections',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['OS=="mac"', {
|
|
|
|
'xcode_settings': {
|
|
|
|
'GCC_OPTIMIZATION_LEVEL': '0', # -O0
|
|
|
|
},
|
|
|
|
}],
|
2015-01-09 16:25:36 +00:00
|
|
|
['v8_enable_slow_dchecks==1', {
|
|
|
|
'defines': [
|
|
|
|
'ENABLE_SLOW_DCHECKS',
|
|
|
|
],
|
|
|
|
}],
|
2014-12-08 09:26:04 +00:00
|
|
|
],
|
Use abstract configurations to switch between opt debug settings
The problem is that conditions are evaluated before configuration inheritance is resolved, so we can't just define a configuration like this:
'Optdebug': {
'inherits_from': ['Debug'],
'variables': {
'v8_optimized_debug': 2,
}
}
Instead, we have to put the different settings depending on the optimization level into separate configurations, and use conditions inside the concrete configurations to inherit from the correct base class.
Common settings go in the base configuration DebugBaseCommon, and v8_optimized_debug dependent settings go into DebugBase{0,1,2}
The new Debug configuration inherits from DebugBaseCommon and DebugBase<(v8_optimized_debug), while the new configuration Optdebug inherits from DebugBaseCommon and DebugBase2.
BUG=v8:3252
R=machenbach@chromium.org, jkummerow@chromium.org
LOG=n
Review URL: https://codereview.chromium.org/224443003
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20605 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-04-09 09:54:49 +00:00
|
|
|
}, # DebugBase0
|
|
|
|
# Abstract configuration for v8_optimized_debug == 1.
|
|
|
|
'DebugBase1': {
|
|
|
|
'abstract': 1,
|
|
|
|
'msvs_settings': {
|
|
|
|
'VCCLCompilerTool': {
|
|
|
|
'Optimization': '2',
|
|
|
|
'InlineFunctionExpansion': '2',
|
|
|
|
'EnableIntrinsicFunctions': 'true',
|
|
|
|
'FavorSizeOrSpeed': '0',
|
|
|
|
'StringPooling': 'true',
|
|
|
|
'BasicRuntimeChecks': '0',
|
|
|
|
'conditions': [
|
|
|
|
['component=="shared_library"', {
|
|
|
|
'RuntimeLibrary': '3', #/MDd
|
|
|
|
}, {
|
|
|
|
'RuntimeLibrary': '1', #/MTd
|
Revamp v8_optimized_debug options
This patch changes the definition of v8_optimized_debug==1 to match the release-mode compiler optimization settings (generally, going from -O1 to -O3 on Linux, similar switches for Mac/Win). This produces a minor speed up on Linux, but significant speedups on Mac and Win. This may make it much harder to debug, though.
It also adds a v8_optimized_debug==2 that, in addition to the compiler optimizations, undef's DEBUG and defines DEBUG. This leaves V8_ENABLE_CHECKS alone (so that the assertions are still enabled), but otherwise basically matches a release mode build.
Builds with v8_optimized_debug==2 roughly match a Release mode build for speed; the V8_ENABLE_CHECKS checks appear to have minimal performance impact (maybe 5-10%, unlike what was previously thought). In addition, switching from the previous optimization settings makes a significant improvement on Mac and Win (50% or more), and switching from DEBUG to NDEBUG makes a significant improvement (another 50% or more).
Note that using v8_optimized_debug==2 may also cause some v8 tests to fail. This is currently is believed to be acceptable.
R=machenbach@chromium.org
BUG=254188
Review URL: https://codereview.chromium.org/19384011
Patch from Dirk Pranke <dpranke@chromium.org>.
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15937 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2013-07-29 14:00:06 +00:00
|
|
|
}],
|
Use abstract configurations to switch between opt debug settings
The problem is that conditions are evaluated before configuration inheritance is resolved, so we can't just define a configuration like this:
'Optdebug': {
'inherits_from': ['Debug'],
'variables': {
'v8_optimized_debug': 2,
}
}
Instead, we have to put the different settings depending on the optimization level into separate configurations, and use conditions inside the concrete configurations to inherit from the correct base class.
Common settings go in the base configuration DebugBaseCommon, and v8_optimized_debug dependent settings go into DebugBase{0,1,2}
The new Debug configuration inherits from DebugBaseCommon and DebugBase<(v8_optimized_debug), while the new configuration Optdebug inherits from DebugBaseCommon and DebugBase2.
BUG=v8:3252
R=machenbach@chromium.org, jkummerow@chromium.org
LOG=n
Review URL: https://codereview.chromium.org/224443003
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20605 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-04-09 09:54:49 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
'VCLinkerTool': {
|
|
|
|
'LinkIncremental': '1',
|
|
|
|
'OptimizeReferences': '2',
|
|
|
|
'EnableCOMDATFolding': '2',
|
|
|
|
},
|
|
|
|
},
|
2015-01-09 16:25:36 +00:00
|
|
|
'variables': {
|
|
|
|
'v8_enable_slow_dchecks%': 0,
|
|
|
|
},
|
Use abstract configurations to switch between opt debug settings
The problem is that conditions are evaluated before configuration inheritance is resolved, so we can't just define a configuration like this:
'Optdebug': {
'inherits_from': ['Debug'],
'variables': {
'v8_optimized_debug': 2,
}
}
Instead, we have to put the different settings depending on the optimization level into separate configurations, and use conditions inside the concrete configurations to inherit from the correct base class.
Common settings go in the base configuration DebugBaseCommon, and v8_optimized_debug dependent settings go into DebugBase{0,1,2}
The new Debug configuration inherits from DebugBaseCommon and DebugBase<(v8_optimized_debug), while the new configuration Optdebug inherits from DebugBaseCommon and DebugBase2.
BUG=v8:3252
R=machenbach@chromium.org, jkummerow@chromium.org
LOG=n
Review URL: https://codereview.chromium.org/224443003
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20605 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-04-09 09:54:49 +00:00
|
|
|
'conditions': [
|
|
|
|
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" or \
|
2015-01-30 08:01:53 +00:00
|
|
|
OS=="qnx" or OS=="aix"', {
|
Use abstract configurations to switch between opt debug settings
The problem is that conditions are evaluated before configuration inheritance is resolved, so we can't just define a configuration like this:
'Optdebug': {
'inherits_from': ['Debug'],
'variables': {
'v8_optimized_debug': 2,
}
}
Instead, we have to put the different settings depending on the optimization level into separate configurations, and use conditions inside the concrete configurations to inherit from the correct base class.
Common settings go in the base configuration DebugBaseCommon, and v8_optimized_debug dependent settings go into DebugBase{0,1,2}
The new Debug configuration inherits from DebugBaseCommon and DebugBase<(v8_optimized_debug), while the new configuration Optdebug inherits from DebugBaseCommon and DebugBase2.
BUG=v8:3252
R=machenbach@chromium.org, jkummerow@chromium.org
LOG=n
Review URL: https://codereview.chromium.org/224443003
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20605 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-04-09 09:54:49 +00:00
|
|
|
'cflags!': [
|
|
|
|
'-O0',
|
|
|
|
'-O1',
|
|
|
|
'-Os',
|
|
|
|
],
|
|
|
|
'cflags': [
|
|
|
|
'-fdata-sections',
|
|
|
|
'-ffunction-sections',
|
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
# TODO(crbug.com/272548): Avoid -O3 in NaCl
|
2015-01-20 16:07:11 +00:00
|
|
|
# Don't use -O3 with sanitizers.
|
|
|
|
['nacl_target_arch=="none" and asan==0 and msan==0 and lsan==0 \
|
|
|
|
and tsan==0 and ubsan==0 and ubsan_vptr==0', {
|
Use abstract configurations to switch between opt debug settings
The problem is that conditions are evaluated before configuration inheritance is resolved, so we can't just define a configuration like this:
'Optdebug': {
'inherits_from': ['Debug'],
'variables': {
'v8_optimized_debug': 2,
}
}
Instead, we have to put the different settings depending on the optimization level into separate configurations, and use conditions inside the concrete configurations to inherit from the correct base class.
Common settings go in the base configuration DebugBaseCommon, and v8_optimized_debug dependent settings go into DebugBase{0,1,2}
The new Debug configuration inherits from DebugBaseCommon and DebugBase<(v8_optimized_debug), while the new configuration Optdebug inherits from DebugBaseCommon and DebugBase2.
BUG=v8:3252
R=machenbach@chromium.org, jkummerow@chromium.org
LOG=n
Review URL: https://codereview.chromium.org/224443003
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20605 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-04-09 09:54:49 +00:00
|
|
|
'cflags': ['-O3'],
|
|
|
|
'cflags!': ['-O2'],
|
|
|
|
}, {
|
|
|
|
'cflags': ['-O2'],
|
|
|
|
'cflags!': ['-O3'],
|
2013-07-10 15:21:43 +00:00
|
|
|
}],
|
|
|
|
],
|
2011-08-25 14:50:09 +00:00
|
|
|
}],
|
Use abstract configurations to switch between opt debug settings
The problem is that conditions are evaluated before configuration inheritance is resolved, so we can't just define a configuration like this:
'Optdebug': {
'inherits_from': ['Debug'],
'variables': {
'v8_optimized_debug': 2,
}
}
Instead, we have to put the different settings depending on the optimization level into separate configurations, and use conditions inside the concrete configurations to inherit from the correct base class.
Common settings go in the base configuration DebugBaseCommon, and v8_optimized_debug dependent settings go into DebugBase{0,1,2}
The new Debug configuration inherits from DebugBaseCommon and DebugBase<(v8_optimized_debug), while the new configuration Optdebug inherits from DebugBaseCommon and DebugBase2.
BUG=v8:3252
R=machenbach@chromium.org, jkummerow@chromium.org
LOG=n
Review URL: https://codereview.chromium.org/224443003
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20605 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-04-09 09:54:49 +00:00
|
|
|
['OS=="mac"', {
|
|
|
|
'xcode_settings': {
|
|
|
|
'GCC_OPTIMIZATION_LEVEL': '3', # -O3
|
|
|
|
'GCC_STRICT_ALIASING': 'YES',
|
|
|
|
},
|
|
|
|
}],
|
2015-01-09 16:25:36 +00:00
|
|
|
['v8_enable_slow_dchecks==1', {
|
|
|
|
'defines': [
|
|
|
|
'ENABLE_SLOW_DCHECKS',
|
|
|
|
],
|
|
|
|
}],
|
Use abstract configurations to switch between opt debug settings
The problem is that conditions are evaluated before configuration inheritance is resolved, so we can't just define a configuration like this:
'Optdebug': {
'inherits_from': ['Debug'],
'variables': {
'v8_optimized_debug': 2,
}
}
Instead, we have to put the different settings depending on the optimization level into separate configurations, and use conditions inside the concrete configurations to inherit from the correct base class.
Common settings go in the base configuration DebugBaseCommon, and v8_optimized_debug dependent settings go into DebugBase{0,1,2}
The new Debug configuration inherits from DebugBaseCommon and DebugBase<(v8_optimized_debug), while the new configuration Optdebug inherits from DebugBaseCommon and DebugBase2.
BUG=v8:3252
R=machenbach@chromium.org, jkummerow@chromium.org
LOG=n
Review URL: https://codereview.chromium.org/224443003
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20605 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-04-09 09:54:49 +00:00
|
|
|
],
|
2015-01-12 09:58:29 +00:00
|
|
|
}, # DebugBase1
|
Use abstract configurations to switch between opt debug settings
The problem is that conditions are evaluated before configuration inheritance is resolved, so we can't just define a configuration like this:
'Optdebug': {
'inherits_from': ['Debug'],
'variables': {
'v8_optimized_debug': 2,
}
}
Instead, we have to put the different settings depending on the optimization level into separate configurations, and use conditions inside the concrete configurations to inherit from the correct base class.
Common settings go in the base configuration DebugBaseCommon, and v8_optimized_debug dependent settings go into DebugBase{0,1,2}
The new Debug configuration inherits from DebugBaseCommon and DebugBase<(v8_optimized_debug), while the new configuration Optdebug inherits from DebugBaseCommon and DebugBase2.
BUG=v8:3252
R=machenbach@chromium.org, jkummerow@chromium.org
LOG=n
Review URL: https://codereview.chromium.org/224443003
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20605 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-04-09 09:54:49 +00:00
|
|
|
# Common settings for the Debug configuration.
|
|
|
|
'DebugBaseCommon': {
|
|
|
|
'abstract': 1,
|
|
|
|
'defines': [
|
|
|
|
'ENABLE_DISASSEMBLER',
|
|
|
|
'V8_ENABLE_CHECKS',
|
|
|
|
'OBJECT_PRINT',
|
|
|
|
'VERIFY_HEAP',
|
2014-11-07 16:03:11 +00:00
|
|
|
'DEBUG',
|
|
|
|
'TRACE_MAPS'
|
Use abstract configurations to switch between opt debug settings
The problem is that conditions are evaluated before configuration inheritance is resolved, so we can't just define a configuration like this:
'Optdebug': {
'inherits_from': ['Debug'],
'variables': {
'v8_optimized_debug': 2,
}
}
Instead, we have to put the different settings depending on the optimization level into separate configurations, and use conditions inside the concrete configurations to inherit from the correct base class.
Common settings go in the base configuration DebugBaseCommon, and v8_optimized_debug dependent settings go into DebugBase{0,1,2}
The new Debug configuration inherits from DebugBaseCommon and DebugBase<(v8_optimized_debug), while the new configuration Optdebug inherits from DebugBaseCommon and DebugBase2.
BUG=v8:3252
R=machenbach@chromium.org, jkummerow@chromium.org
LOG=n
Review URL: https://codereview.chromium.org/224443003
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20605 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-04-09 09:54:49 +00:00
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" or \
|
2015-01-30 08:01:53 +00:00
|
|
|
OS=="qnx" or OS=="aix"', {
|
Use abstract configurations to switch between opt debug settings
The problem is that conditions are evaluated before configuration inheritance is resolved, so we can't just define a configuration like this:
'Optdebug': {
'inherits_from': ['Debug'],
'variables': {
'v8_optimized_debug': 2,
}
}
Instead, we have to put the different settings depending on the optimization level into separate configurations, and use conditions inside the concrete configurations to inherit from the correct base class.
Common settings go in the base configuration DebugBaseCommon, and v8_optimized_debug dependent settings go into DebugBase{0,1,2}
The new Debug configuration inherits from DebugBaseCommon and DebugBase<(v8_optimized_debug), while the new configuration Optdebug inherits from DebugBaseCommon and DebugBase2.
BUG=v8:3252
R=machenbach@chromium.org, jkummerow@chromium.org
LOG=n
Review URL: https://codereview.chromium.org/224443003
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20605 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-04-09 09:54:49 +00:00
|
|
|
'cflags': [ '-Woverloaded-virtual', '<(wno_array_bounds)', ],
|
|
|
|
}],
|
2012-12-14 14:27:06 +00:00
|
|
|
['OS=="linux" and v8_enable_backtrace==1', {
|
|
|
|
# Support for backtrace_symbols.
|
|
|
|
'ldflags': [ '-rdynamic' ],
|
|
|
|
}],
|
2015-02-23 06:13:43 +00:00
|
|
|
['OS=="linux" and disable_glibcxx_debug==0', {
|
|
|
|
# Enable libstdc++ debugging facilities to help catch problems
|
|
|
|
# early, see http://crbug.com/65151 .
|
|
|
|
'defines': ['_GLIBCXX_DEBUG=1',],
|
|
|
|
}],
|
2015-01-30 08:01:53 +00:00
|
|
|
['OS=="aix"', {
|
|
|
|
'ldflags': [ '-Wl,-bbigtoc' ],
|
2015-03-18 08:43:21 +00:00
|
|
|
'conditions': [
|
|
|
|
['v8_target_arch=="ppc64"', {
|
|
|
|
'cflags': [ '-maix64 -mcmodel=large' ],
|
|
|
|
}],
|
|
|
|
],
|
2015-01-30 08:01:53 +00:00
|
|
|
}],
|
2012-08-27 15:25:15 +00:00
|
|
|
['OS=="android"', {
|
|
|
|
'variables': {
|
|
|
|
'android_full_debug%': 1,
|
|
|
|
},
|
|
|
|
'conditions': [
|
|
|
|
['android_full_debug==0', {
|
|
|
|
# Disable full debug if we want a faster v8 in a debug build.
|
|
|
|
# TODO(2304): pass DISABLE_DEBUG_ASSERT instead of hiding DEBUG.
|
|
|
|
'defines!': [
|
|
|
|
'DEBUG',
|
2014-12-09 11:32:29 +00:00
|
|
|
'ENABLE_SLOW_DCHECKS',
|
2012-08-27 15:25:15 +00:00
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
}],
|
2015-07-24 06:17:52 +00:00
|
|
|
# TODO(pcc): Re-enable in LTO builds once we've fixed the intermittent
|
|
|
|
# link failures (crbug.com/513074).
|
|
|
|
['linux_use_gold_flags==1 and use_lto==0', {
|
2015-02-10 07:26:59 +00:00
|
|
|
'target_conditions': [
|
|
|
|
['_toolset=="target"', {
|
|
|
|
'ldflags': [
|
|
|
|
# Experimentation found that using four linking threads
|
|
|
|
# saved ~20% of link time.
|
|
|
|
# https://groups.google.com/a/chromium.org/group/chromium-dev/browse_thread/thread/281527606915bb36
|
|
|
|
# Only apply this to the target linker, since the host
|
|
|
|
# linker might not be gold, but isn't used much anyway.
|
|
|
|
'-Wl,--threads',
|
|
|
|
'-Wl,--thread-count=4',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
}],
|
Use abstract configurations to switch between opt debug settings
The problem is that conditions are evaluated before configuration inheritance is resolved, so we can't just define a configuration like this:
'Optdebug': {
'inherits_from': ['Debug'],
'variables': {
'v8_optimized_debug': 2,
}
}
Instead, we have to put the different settings depending on the optimization level into separate configurations, and use conditions inside the concrete configurations to inherit from the correct base class.
Common settings go in the base configuration DebugBaseCommon, and v8_optimized_debug dependent settings go into DebugBase{0,1,2}
The new Debug configuration inherits from DebugBaseCommon and DebugBase<(v8_optimized_debug), while the new configuration Optdebug inherits from DebugBaseCommon and DebugBase2.
BUG=v8:3252
R=machenbach@chromium.org, jkummerow@chromium.org
LOG=n
Review URL: https://codereview.chromium.org/224443003
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20605 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-04-09 09:54:49 +00:00
|
|
|
],
|
|
|
|
}, # DebugBaseCommon
|
|
|
|
'Debug': {
|
|
|
|
'inherit_from': ['DebugBaseCommon'],
|
|
|
|
'conditions': [
|
|
|
|
['v8_optimized_debug==0', {
|
|
|
|
'inherit_from': ['DebugBase0'],
|
2015-01-12 09:58:29 +00:00
|
|
|
}, {
|
Use abstract configurations to switch between opt debug settings
The problem is that conditions are evaluated before configuration inheritance is resolved, so we can't just define a configuration like this:
'Optdebug': {
'inherits_from': ['Debug'],
'variables': {
'v8_optimized_debug': 2,
}
}
Instead, we have to put the different settings depending on the optimization level into separate configurations, and use conditions inside the concrete configurations to inherit from the correct base class.
Common settings go in the base configuration DebugBaseCommon, and v8_optimized_debug dependent settings go into DebugBase{0,1,2}
The new Debug configuration inherits from DebugBaseCommon and DebugBase<(v8_optimized_debug), while the new configuration Optdebug inherits from DebugBaseCommon and DebugBase2.
BUG=v8:3252
R=machenbach@chromium.org, jkummerow@chromium.org
LOG=n
Review URL: https://codereview.chromium.org/224443003
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20605 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-04-09 09:54:49 +00:00
|
|
|
'inherit_from': ['DebugBase1'],
|
|
|
|
}],
|
2011-08-25 14:50:09 +00:00
|
|
|
],
|
2012-01-17 14:35:38 +00:00
|
|
|
}, # Debug
|
2011-08-25 14:50:09 +00:00
|
|
|
'Release': {
|
2015-01-09 16:25:36 +00:00
|
|
|
'variables': {
|
|
|
|
'v8_enable_slow_dchecks%': 0,
|
|
|
|
},
|
2011-08-25 14:50:09 +00:00
|
|
|
'conditions': [
|
2015-01-30 08:01:53 +00:00
|
|
|
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" \
|
|
|
|
or OS=="aix"', {
|
2011-08-25 14:50:09 +00:00
|
|
|
'cflags!': [
|
|
|
|
'-Os',
|
|
|
|
],
|
|
|
|
'cflags': [
|
|
|
|
'-fdata-sections',
|
|
|
|
'-ffunction-sections',
|
2013-07-10 16:21:17 +00:00
|
|
|
'<(wno_array_bounds)',
|
2011-08-25 14:50:09 +00:00
|
|
|
],
|
|
|
|
'conditions': [
|
2013-08-20 08:12:19 +00:00
|
|
|
# TODO(crbug.com/272548): Avoid -O3 in NaCl
|
2015-01-20 16:07:11 +00:00
|
|
|
# Don't use -O3 with sanitizers.
|
|
|
|
['nacl_target_arch=="none" and asan==0 and msan==0 and lsan==0 \
|
|
|
|
and tsan==0 and ubsan==0 and ubsan_vptr==0', {
|
2013-08-20 08:12:19 +00:00
|
|
|
'cflags': ['-O3'],
|
|
|
|
'cflags!': ['-O2'],
|
|
|
|
}, {
|
|
|
|
'cflags': ['-O2'],
|
|
|
|
'cflags!': ['-O3'],
|
|
|
|
}],
|
2011-08-25 14:50:09 +00:00
|
|
|
],
|
|
|
|
}],
|
2013-06-12 08:05:43 +00:00
|
|
|
['OS=="android"', {
|
|
|
|
'cflags!': [
|
|
|
|
'-O3',
|
|
|
|
'-Os',
|
|
|
|
],
|
|
|
|
'cflags': [
|
|
|
|
'-fdata-sections',
|
|
|
|
'-ffunction-sections',
|
|
|
|
'-O2',
|
|
|
|
],
|
|
|
|
}],
|
2011-08-25 14:50:09 +00:00
|
|
|
['OS=="mac"', {
|
|
|
|
'xcode_settings': {
|
|
|
|
'GCC_OPTIMIZATION_LEVEL': '3', # -O3
|
|
|
|
|
|
|
|
# -fstrict-aliasing. Mainline gcc
|
|
|
|
# enables this at -O2 and above,
|
|
|
|
# but Apple gcc does not unless it
|
|
|
|
# is specified explicitly.
|
|
|
|
'GCC_STRICT_ALIASING': 'YES',
|
|
|
|
},
|
2012-01-17 14:35:38 +00:00
|
|
|
}], # OS=="mac"
|
2011-08-25 14:50:09 +00:00
|
|
|
['OS=="win"', {
|
|
|
|
'msvs_settings': {
|
|
|
|
'VCCLCompilerTool': {
|
|
|
|
'Optimization': '2',
|
|
|
|
'InlineFunctionExpansion': '2',
|
|
|
|
'EnableIntrinsicFunctions': 'true',
|
|
|
|
'FavorSizeOrSpeed': '0',
|
|
|
|
'StringPooling': 'true',
|
|
|
|
'conditions': [
|
2013-07-10 15:21:43 +00:00
|
|
|
['component=="shared_library"', {
|
2011-08-25 14:50:09 +00:00
|
|
|
'RuntimeLibrary': '2', #/MD
|
|
|
|
}, {
|
|
|
|
'RuntimeLibrary': '0', #/MT
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
'VCLinkerTool': {
|
|
|
|
'LinkIncremental': '1',
|
|
|
|
'OptimizeReferences': '2',
|
|
|
|
'EnableCOMDATFolding': '2',
|
|
|
|
},
|
|
|
|
},
|
2012-01-17 14:35:38 +00:00
|
|
|
}], # OS=="win"
|
2015-01-09 16:25:36 +00:00
|
|
|
['v8_enable_slow_dchecks==1', {
|
|
|
|
'defines': [
|
|
|
|
'ENABLE_SLOW_DCHECKS',
|
|
|
|
],
|
|
|
|
}],
|
2012-01-17 14:35:38 +00:00
|
|
|
], # conditions
|
|
|
|
}, # Release
|
|
|
|
}, # configurations
|
|
|
|
}, # target_defaults
|
2010-12-14 08:16:39 +00:00
|
|
|
}
|