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

Unified Diff: build/config/compiler/BUILD.gn

Issue 2150943003: Add MIPS SIMD Arch (MSA) build flags for GYP/GN builds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Modified AUTHORs list to pass chromium_presubmit trybot Created 4 years, 4 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
« no previous file with comments | « build/common.gypi ('k') | build/config/mips.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/compiler/BUILD.gn
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
index 30d801789d8a36aeab008f75aeedea2afacebe79..a31b34e5b83d3b0de77857c6fb7b12cbc750aa8c 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -568,6 +568,14 @@ config("compiler_cpu_abi") {
]
}
}
+ if (mips_use_msa == true) {
+ cflags += [
+ "-mmsa",
+ "-mfp64",
+ "-msched-weight",
+ "-mload-store-pairs",
+ ]
+ }
} else if (mips_arch_variant == "r2") {
if (is_clang) {
if (is_android) {
@@ -644,6 +652,14 @@ config("compiler_cpu_abi") {
]
ldflags += [ "-mips64r6" ]
}
+ if (mips_use_msa == true) {
+ cflags += [
+ "-mmsa",
+ "-mfp64",
+ "-msched-weight",
+ "-mload-store-pairs",
+ ]
+ }
} else if (mips_arch_variant == "r2") {
cflags += [
"-mips64r2",
« no previous file with comments | « build/common.gypi ('k') | build/config/mips.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698