Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index 1f513f4431514abf0718e0fa75e810cc5ee928df..b4c4e84acaa98035d6210e07319d3a9002ede44e 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -226,6 +226,10 @@ config("compiler") { |
] |
} |
} else if (current_cpu == "mipsel") { |
+ # Some toolchains default to big-endian. |
+ cflags += [ "-EL" ] |
+ ldflags += [ "-EL" ] |
+ |
# We have to explicitly request exceptions to get good heap profiles from |
# tcmalloc. |
if (is_debug || is_release) { |