 Chromium Code Reviews
 Chromium Code Reviews Issue 883253003:
  Add the mips_dsp_rev build variable.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master
    
  
    Issue 883253003:
  Add the mips_dsp_rev build variable.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master| Index: build/config/compiler/BUILD.gn | 
| diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn | 
| index 1460fb3eb1eb955b9fc32ae3c9306018d372d071..58ed8c0e0c64731fc0a761f1fc5ab5b506b7fd83 100644 | 
| --- a/build/config/compiler/BUILD.gn | 
| +++ b/build/config/compiler/BUILD.gn | 
| @@ -301,6 +301,28 @@ config("compiler") { | 
| "-Wa,-mips32", | 
| ] | 
| } | 
| + | 
| + if (mips_dsp_rev == 1) { | 
| + cflags += [ "-mdsp" ] | 
| 
kjellander_chromium
2015/02/23 13:22:35
Similar to common.gypi: what about the cflags_cc e
 
wtc
2015/02/23 20:15:51
Please see Brett's and my comments in build/common
 | 
| + } else if (mips_dsp_rev == 2) { | 
| + cflags += [ "-mdspr2" ] | 
| + } | 
| + | 
| + if (mips_float_abi == "hard") { | 
| + cflags += [ "-mhard-float" ] | 
| + } else { | 
| + cflags += [ "-msoft-float" ] | 
| + } | 
| + | 
| + if (mips_arch_variant == "r2") { | 
| + if (mips_fpu_mode == "fp32") { | 
| + cflags += [ "-mfp32" ] | 
| + } else if (mips_fpu_mode == "fp64") { | 
| + cflags += [ "-mfp64" ] | 
| + } else if (mips_fpu_mode == "fpxx") { | 
| + cflags += [ "-mfpxx" ] | 
| + } | 
| + } | 
| } | 
| } else if (cpu_arch == "mips64el") { | 
| # Don't set the compiler flags for the WebView build. These will come |