Revert some .gyp refactoring to fix ARM cross-compilation

Review URL: http://codereview.chromium.org/7623009

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8894 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 654417d1
...@@ -97,12 +97,6 @@ ...@@ -97,12 +97,6 @@
'USE_EABI_HARDFLOAT=0', 'USE_EABI_HARDFLOAT=0',
], ],
}], }],
# The ARM assembler assumes the host is 32 bits,
# so force building 32-bit host tools.
[ 'host_arch=="x64" and _toolset=="host "', {
'cflags': ['-m32'],
'ldflags': ['-m32'],
}],
], ],
}], }],
['v8_target_arch=="ia32"', { ['v8_target_arch=="ia32"', {
......
...@@ -112,12 +112,6 @@ ...@@ -112,12 +112,6 @@
'USE_EABI_HARDFLOAT=0', 'USE_EABI_HARDFLOAT=0',
], ],
}], }],
# The ARM assembler assumes the host is 32 bits,
# so force building 32-bit host tools.
[ 'host_arch=="x64" and _toolset=="host"', {
'cflags': ['-m32'],
'ldflags': ['-m32'],
}],
], ],
}], }],
['v8_target_arch=="ia32"', { ['v8_target_arch=="ia32"', {
...@@ -323,6 +317,13 @@ ...@@ -323,6 +317,13 @@
'toolsets': ['target'], 'toolsets': ['target'],
'dependencies': ['mksnapshot', 'js2c'], 'dependencies': ['mksnapshot', 'js2c'],
}], }],
# The ARM assembler assumes the host is 32 bits,
# so force building 32-bit host tools.
['v8_target_arch=="arm" and host_arch=="x64" and \
_toolset=="host"', {
'cflags': ['-m32'],
'ldflags': ['-m32'],
}],
['component=="shared_library"', { ['component=="shared_library"', {
'conditions': [ 'conditions': [
['OS=="win"', { ['OS=="win"', {
...@@ -426,6 +427,13 @@ ...@@ -426,6 +427,13 @@
'../../src/snapshot-empty.cc', '../../src/snapshot-empty.cc',
], ],
'conditions': [ 'conditions': [
# The ARM assembler assumes the host is 32 bits,
# so force building 32-bit host tools.
['v8_target_arch=="arm" and host_arch=="x64" and \
_toolset=="host"', {
'cflags': ['-m32'],
'ldflags': ['-m32'],
}],
['want_separate_host_toolset==1', { ['want_separate_host_toolset==1', {
'toolsets': ['host', 'target'], 'toolsets': ['host', 'target'],
'dependencies': ['js2c#host'], 'dependencies': ['js2c#host'],
...@@ -737,6 +745,14 @@ ...@@ -737,6 +745,14 @@
'../../src/arm/simulator-arm.cc', '../../src/arm/simulator-arm.cc',
'../../src/arm/stub-cache-arm.cc', '../../src/arm/stub-cache-arm.cc',
], ],
'conditions': [
# The ARM assembler assumes the host is 32 bits,
# so force building 32-bit host tools.
['host_arch=="x64" and _toolset=="host"', {
'cflags': ['-m32'],
'ldflags': ['-m32'],
}],
],
}], }],
['v8_target_arch=="ia32" or v8_target_arch=="mac" or OS=="mac"', { ['v8_target_arch=="ia32" or v8_target_arch=="mac" or OS=="mac"', {
'sources': [ 'sources': [
...@@ -975,6 +991,13 @@ ...@@ -975,6 +991,13 @@
}, { }, {
'toolsets': ['target'], 'toolsets': ['target'],
}], }],
# The ARM assembler assumes the host is 32 bits,
# so force building 32-bit host tools.
['v8_target_arch=="arm" and host_arch=="x64" and \
_toolset=="host"', {
'cflags': ['-m32'],
'ldflags': ['-m32'],
}],
['v8_compress_startup_data=="bz2"', { ['v8_compress_startup_data=="bz2"', {
'libraries': [ 'libraries': [
'-lbz2', '-lbz2',
...@@ -1040,7 +1063,13 @@ ...@@ -1040,7 +1063,13 @@
}, { }, {
'toolsets': ['target'], 'toolsets': ['target'],
}], }],
# The ARM assembler assumes the host is 32 bits,
# so force building 32-bit host tools.
['v8_target_arch=="arm" and host_arch=="x64" and \
_toolset=="host"', {
'cflags': ['-m32'],
'ldflags': ['-m32'],
}],
], ],
'link_settings': { 'link_settings': {
'libraries': [ 'libraries': [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment