Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index 42dc584116663456fa212ae6c3b7d4d4ce4704db..b2d615d42a7ff40f43fcb02de42abeac21ece020 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -573,7 +573,7 @@ config("runtime_library") { |
# TODO(jdduke) Re-enable on mips after resolving linking |
# issues with libc++ (crbug.com/456380). |
- if (cpu_arch != "mipsel" && cpu_arch != "mips64el") { |
+ if (current_cpu != "mipsel" && current_cpu != "mips64el") { |
ldflags += [ "-Wl,--warn-shared-textrel" ] |
} |
ldflags += [ "-nostdlib" ] |
@@ -983,7 +983,7 @@ if (is_win) { |
# TODO(jdduke) Re-enable on mips after resolving linking |
# issues with libc++ (crbug.com/456380). |
- if (cpu_arch != "mipsel" && cpu_arch != "mips64el") { |
+ if (current_cpu != "mipsel" && current_cpu != "mips64el") { |
common_optimize_on_ldflags += [ |
# Warn in case of text relocations. |
"-Wl,--warn-shared-textrel", |