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

Side by Side Diff: build/config/compiler/BUILD.gn

Issue 883253003: Add the mips_dsp_rev build variable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add the mips_float_abi and mips_fpu_mode build variables. Created 5 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 unified diff | Download patch
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 if (cpu_arch == "arm") { 6 if (cpu_arch == "arm") {
7 import("//build/config/arm.gni") 7 import("//build/config/arm.gni")
8 } 8 }
9 if (cpu_arch == "mipsel" || cpu_arch == "mips64el") { 9 if (cpu_arch == "mipsel" || cpu_arch == "mips64el") {
10 import("//build/config/mips.gni") 10 import("//build/config/mips.gni")
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 cflags += [ 294 cflags += [
295 "-mips32r2", 295 "-mips32r2",
296 "-Wa,-mips32r2", 296 "-Wa,-mips32r2",
297 ] 297 ]
298 } else if (mips_arch_variant == "r1") { 298 } else if (mips_arch_variant == "r1") {
299 cflags += [ 299 cflags += [
300 "-mips32", 300 "-mips32",
301 "-Wa,-mips32", 301 "-Wa,-mips32",
302 ] 302 ]
303 } 303 }
304
305 if (mips_dsp_rev == 1) {
306 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
307 } else if (mips_dsp_rev == 2) {
308 cflags += [ "-mdspr2" ]
309 }
310
311 if (mips_float_abi == "hard") {
312 cflags += [ "-mhard-float" ]
313 } else {
314 cflags += [ "-msoft-float" ]
315 }
316
317 if (mips_arch_variant == "r2") {
318 if (mips_fpu_mode == "fp32") {
319 cflags += [ "-mfp32" ]
320 } else if (mips_fpu_mode == "fp64") {
321 cflags += [ "-mfp64" ]
322 } else if (mips_fpu_mode == "fpxx") {
323 cflags += [ "-mfpxx" ]
324 }
325 }
304 } 326 }
305 } else if (cpu_arch == "mips64el") { 327 } else if (cpu_arch == "mips64el") {
306 # Don't set the compiler flags for the WebView build. These will come 328 # Don't set the compiler flags for the WebView build. These will come
307 # from the Android build system. 329 # from the Android build system.
308 if (!is_android_webview_build) { 330 if (!is_android_webview_build) {
309 if (mips_arch_variant == "r6") { 331 if (mips_arch_variant == "r6") {
310 cflags += [ 332 cflags += [
311 "-mips64r6", 333 "-mips64r6",
312 "-Wa,-mips64r6", 334 "-Wa,-mips64r6",
313 ] 335 ]
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 cflags += [ "-gsplit-dwarf" ] 1096 cflags += [ "-gsplit-dwarf" ]
1075 } 1097 }
1076 } 1098 }
1077 } 1099 }
1078 1100
1079 config("no_symbols") { 1101 config("no_symbols") {
1080 if (!is_win) { 1102 if (!is_win) {
1081 cflags = [ "-g0" ] 1103 cflags = [ "-g0" ]
1082 } 1104 }
1083 } 1105 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698