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

Unified Diff: build/common.gypi

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 | « AUTHORS ('k') | build/config/compiler/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index 0935433a94a3e04352e933e4a2b98c9b7e5fd7e4..4bd4fa8c9ee5dd8228308fdbcebf9bf90966bd5a 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -217,6 +217,9 @@
# 2: revision 2
'mips_dsp_rev%': 0,
+ # MIPS SIMD Arch compilation flag.
+ 'mips_msa%': 1,
+
'conditions': [
['branding == "Chrome"', {
'branding_path_component%': 'google_chrome',
@@ -340,6 +343,7 @@
'target_subarch%': '<(target_subarch)',
'mips_arch_variant%': '<(mips_arch_variant)',
'mips_dsp_rev%': '<(mips_dsp_rev)',
+ 'mips_msa%': '<(mips_msa)',
'toolkit_views%': '<(toolkit_views)',
'desktop_linux%': '<(desktop_linux)',
'use_aura%': '<(use_aura)',
@@ -1120,6 +1124,7 @@
'target_subarch%': '<(target_subarch)',
'mips_arch_variant%': '<(mips_arch_variant)',
'mips_dsp_rev%': '<(mips_dsp_rev)',
+ 'mips_msa%': '<(mips_msa)',
'host_arch%': '<(host_arch)',
'toolkit_views%': '<(toolkit_views)',
'ui_compositor_image_transport%': '<(ui_compositor_image_transport)',
@@ -4131,6 +4136,9 @@
['clang==0 and OS=="android"', {
'ldflags': ['-mips32r6', '-Wl,-melf32ltsmip',],
}],
+ ['mips_msa==1', {
+ 'cflags': ['-mmsa', '-mfp64', '-msched-weight', '-mload-store-pairs'],
+ }],
],
'cflags': [ '-mfp64', '-mno-odd-spreg' ],
'ldflags': [ '-mfp64', '-mno-odd-spreg' ],
@@ -4237,6 +4245,9 @@
'cflags': ['-mips64r6', '-Wa,-mips64r6'],
'ldflags': ['-mips64r6'],
}],
+ ['mips_msa==1', {
+ 'cflags': ['-mmsa', '-mfp64', '-msched-weight', '-mload-store-pairs'],
+ }],
],
}],
['mips_arch_variant=="r2"', {
« no previous file with comments | « AUTHORS ('k') | build/config/compiler/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698