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

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

Issue 975183002: MIPS compiler flags: use -mfp32 or -mfp64 only if -mhard-float is used. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« build/common.gypi ('K') | « build/common.gypi ('k') | no next file » | 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 != "") { 298 if (mips_float_abi == "hard" && mips_fpu_mode != "") {
299 cflags += [ "-m$mips_fpu_mode" ] 299 cflags += [ "-m$mips_fpu_mode" ]
300 } 300 }
301 } else if (mips_arch_variant == "r1") { 301 } else if (mips_arch_variant == "r1") {
302 cflags += [ 302 cflags += [
303 "-mips32", 303 "-mips32",
304 "-Wa,-mips32", 304 "-Wa,-mips32",
305 ] 305 ]
306 } 306 }
307 307
308 if (mips_dsp_rev == 1) { 308 if (mips_dsp_rev == 1) {
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
1094 cflags += [ "-gsplit-dwarf" ] 1094 cflags += [ "-gsplit-dwarf" ]
1095 } 1095 }
1096 } 1096 }
1097 } 1097 }
1098 1098
1099 config("no_symbols") { 1099 config("no_symbols") {
1100 if (!is_win) { 1100 if (!is_win) {
1101 cflags = [ "-g0" ] 1101 cflags = [ "-g0" ]
1102 } 1102 }
1103 } 1103 }
OLDNEW
« build/common.gypi ('K') | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698