Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Unified Diff: build/common.gypi

Issue 9361024: MIPS: Enabled native/cross-compilation for MIPS targets in the gyp system. (Closed)
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | build/mipsu.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index 8201e2c036af9d0a42ca3b679717aa20cf151984..548df7bdad2ffee2d4933ebccc16e02d55e940ab 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -169,6 +169,28 @@
'V8_TARGET_ARCH_MIPS',
],
'conditions': [
+ [ 'target_arch=="mips"', {
+ 'target_conditions': [
+ ['_toolset=="target"', {
+ 'cflags': ['-EL'],
+ 'ldflags': ['-EL'],
+ 'conditions': [
+ [ 'v8_use_mips_abi_hardfloat=="true"', {
+ 'cflags': ['-mhard-float'],
+ 'ldflags': ['-mhard-float'],
+ }, {
+ 'cflags': ['-msoft-float'],
+ 'ldflags': ['-msoft-float'],
+ }],
+ ['mips_arch_variant=="mips32r2"', {
+ 'cflags': ['-mips32r2', '-Wa,-mips32r2'],
+ }, {
+ 'cflags': ['-mips32', '-Wa,-mips32'],
+ }],
+ ],
+ }],
+ ],
+ }],
[ 'v8_can_use_fpu_instructions=="true"', {
'defines': [
'CAN_USE_FPU_INSTRUCTIONS',
@@ -184,6 +206,9 @@
'__mips_soft_float=1'
],
}],
+ ['mips_arch_variant=="mips32r2"', {
Jakob Kummerow 2012/02/08 13:07:34 This works for now, but it's a bit brittle: it for
+ 'defines': ['_MIPS_ARCH_MIPS32R2',],
+ }],
# The MIPS assembler assumes the host is 32 bits,
# so force building 32-bit host tools.
['host_arch=="x64"', {
« no previous file with comments | « no previous file | build/mipsu.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698