MIPS: Fix mips gyp build for chromium.
Our planned CL for the Chromium build system passes the toolchain vars though the Makefiles, so that we do not depend on $CXX, etc., in the environment. That causes a problem with deriving the 'm32flag' in v8 gyp. This patch lets us build with or without the toolchain vars in the environment. BUG= Review URL: https://codereview.chromium.org/12218113 Patch from Paul Lind <plind44@gmail.com>. git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13695 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
20913187c0
commit
c6e670928d
@ -32,6 +32,7 @@
|
||||
'use_system_v8%': 0,
|
||||
'msvs_use_common_release': 0,
|
||||
'gcc_version%': 'unknown',
|
||||
'CXX%': '${CXX:-$(which g++)}', # Used to assemble a shell command.
|
||||
'v8_compress_startup_data%': 'off',
|
||||
'v8_target_arch%': '<(target_arch)',
|
||||
|
||||
@ -202,7 +203,7 @@
|
||||
'V8_TARGET_ARCH_MIPS',
|
||||
],
|
||||
'variables': {
|
||||
'mipscompiler': '<!($(echo ${CXX:-$(which g++)}) -v 2>&1 | grep -q "^Target: mips" && echo "yes" || echo "no")',
|
||||
'mipscompiler': '<!($(echo <(CXX)) -v 2>&1 | grep -q "^Target: mips" && echo "yes" || echo "no")',
|
||||
},
|
||||
'conditions': [
|
||||
['mipscompiler=="yes"', {
|
||||
@ -320,7 +321,7 @@
|
||||
}],
|
||||
['_toolset=="target"', {
|
||||
'variables': {
|
||||
'm32flag': '<!((echo | $(echo ${CXX_target:-${CXX:-$(which g++)}}) -m32 -E - > /dev/null 2>&1) && echo "-m32" || true)',
|
||||
'm32flag': '<!((echo | $(echo ${CXX_target:-<(CXX)}) -m32 -E - > /dev/null 2>&1) && echo "-m32" || true)',
|
||||
'clang%': 0,
|
||||
},
|
||||
'conditions': [
|
||||
|
Loading…
Reference in New Issue
Block a user