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

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: Adjust if statement nesting 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
« no previous file with comments | « build/common.gypi ('k') | build/config/mips.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 (current_cpu == "arm") { 6 if (current_cpu == "arm") {
7 import("//build/config/arm.gni") 7 import("//build/config/arm.gni")
8 } 8 }
9 if (current_cpu == "mipsel" || current_cpu == "mips64el") { 9 if (current_cpu == "mipsel" || current_cpu == "mips64el") {
10 import("//build/config/mips.gni") 10 import("//build/config/mips.gni")
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 ldflags += [ 288 ldflags += [
289 "-mips32r6", 289 "-mips32r6",
290 "-Wl,-melf32ltsmip", 290 "-Wl,-melf32ltsmip",
291 ] 291 ]
292 } 292 }
293 } else if (mips_arch_variant == "r2") { 293 } else if (mips_arch_variant == "r2") {
294 cflags += [ 294 cflags += [
295 "-mips32r2", 295 "-mips32r2",
296 "-Wa,-mips32r2", 296 "-Wa,-mips32r2",
297 ] 297 ]
298 if (mips_fpu_mode != "") {
299 cflags += [ "-m$mips_fpu_mode" ]
wtc 2015/02/28 00:32:14 Petar: should we use the -mfp32, -mfp64, -mfpxx fl
petarj 2015/02/28 02:09:10 Yes, these flags only make sense if FPU unit is us
300 }
298 } else if (mips_arch_variant == "r1") { 301 } else if (mips_arch_variant == "r1") {
299 cflags += [ 302 cflags += [
300 "-mips32", 303 "-mips32",
301 "-Wa,-mips32", 304 "-Wa,-mips32",
302 ] 305 ]
303 } 306 }
307
308 if (mips_dsp_rev == 1) {
309 cflags += [ "-mdsp" ]
310 } else if (mips_dsp_rev == 2) {
311 cflags += [ "-mdspr2" ]
312 }
313
314 cflags += [ "-m${mips_float_abi}-float" ]
304 } 315 }
305 } else if (current_cpu == "mips64el") { 316 } else if (current_cpu == "mips64el") {
306 # Don't set the compiler flags for the WebView build. These will come 317 # Don't set the compiler flags for the WebView build. These will come
307 # from the Android build system. 318 # from the Android build system.
308 if (!is_android_webview_build) { 319 if (!is_android_webview_build) {
309 if (mips_arch_variant == "r6") { 320 if (mips_arch_variant == "r6") {
310 cflags += [ 321 cflags += [
311 "-mips64r6", 322 "-mips64r6",
312 "-Wa,-mips64r6", 323 "-Wa,-mips64r6",
313 ] 324 ]
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 cflags += [ "-gsplit-dwarf" ] 1085 cflags += [ "-gsplit-dwarf" ]
1075 } 1086 }
1076 } 1087 }
1077 } 1088 }
1078 1089
1079 config("no_symbols") { 1090 config("no_symbols") {
1080 if (!is_win) { 1091 if (!is_win) {
1081 cflags = [ "-g0" ] 1092 cflags = [ "-g0" ]
1082 } 1093 }
1083 } 1094 }
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | build/config/mips.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698