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

Unified Diff: build/config/mips.gni

Issue 843563002: Add compiler and linker flags for MIPS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add build/config/mips.gni Created 5 years, 11 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
« build/config/compiler/BUILD.gn ('K') | « build/config/compiler/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/mips.gni
diff --git a/build/config/mips.gni b/build/config/mips.gni
new file mode 100644
index 0000000000000000000000000000000000000000..3f64b2a4c639909508fc9d30c86e28076eef00f2
--- /dev/null
+++ b/build/config/mips.gni
@@ -0,0 +1,21 @@
+# Copyright 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# MIPS arch variant.
+if (cpu_arch == "mipsel") {
+ declare_args() {
brettw 2015/01/12 07:27:02 Will anybody actually need to set the arch variant
wtc 2015/01/12 22:53:49 Henrik: does the WebRTC team need to set mips_arch
petarj 2015/01/14 15:08:55 We actually use this often. Being able to build Ch
+ mips_arch_variant = "r1"
Ben Chan 2015/01/20 23:36:34 this definition differs from the one in webrtc.gni
wtc 2015/01/21 01:58:50 Yes. This Chromium CL requires a companion WebRTC
+ }
+}
+if (cpu_arch == "mips64el") {
brettw 2015/01/20 23:34:26 Can you make this an "else if"
wtc 2015/01/21 01:58:50 Done.
+ if (is_android) {
+ declare_args() {
+ mips_arch_variant = "r6"
+ }
+ } else {
+ declare_args() {
+ mips_arch_variant = "r2"
+ }
+ }
+}
« build/config/compiler/BUILD.gn ('K') | « build/config/compiler/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698