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

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

Issue 1952043003: Add SSE2/MMX build flags when building on an x86 host. This is necessary (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved to compiler_cpu_abi config, and fixed for NaCl build Created 4 years, 7 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 | « no previous file | no next file » | 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 2f48477b9750977c999af1c6408cdb762ebba269..beb6bebf555c1b608daf50230e12bf0711ec353e 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -484,6 +484,13 @@ config("compiler_cpu_abi") {
} else if (current_cpu == "x86") {
cflags += [ "-m32" ]
ldflags += [ "-m32" ]
+ if (!is_nacl) {
+ cflags += [
+ "-msse2",
+ "-mfpmath=sse",
+ "-mmmx",
+ ]
+ }
} else if (current_cpu == "arm") {
if (is_clang && !is_android && !is_nacl) {
cflags += [
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698