Index: build/config/mips.gni |
diff --git a/build/config/mips.gni b/build/config/mips.gni |
index 1b406572c73a27227c00addc7d9c02885a5cd234..cc6d53f8bebe2843aeb4817580019515410bb409 100644 |
--- a/build/config/mips.gni |
+++ b/build/config/mips.gni |
@@ -2,7 +2,7 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
-if (current_cpu == "mipsel") { |
+if (current_cpu == "mipsel" || target_cpu == "mipsel") { |
declare_args() { |
# MIPS arch variant. Possible values are: |
# "r1" |
@@ -27,11 +27,11 @@ if (current_cpu == "mipsel") { |
# "fpxx": sets the GCC -mfpxx option. |
mips_fpu_mode = "fp32" |
} |
-} else if (current_cpu == "mips64el") { |
+} else if (current_cpu == "mips64el" || target_cpu == "mips64el") { |
# MIPS arch variant. Possible values are: |
# "r2" |
# "r6" |
- if (is_android) { |
+ if (current_os == "android" || target_os == "android") { |
declare_args() { |
mips_arch_variant = "r6" |
} |