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

Unified Diff: gn/BUILD.gn

Issue 2340463008: GN: support 32-bit x86 builds (Closed)
Patch Set: += Created 4 years, 3 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.gn ('k') | infra/bots/recipe_modules/flavor/gn_flavor.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gn/BUILD.gn
diff --git a/gn/BUILD.gn b/gn/BUILD.gn
index 13fdb907faee4d8d5a761843e57db9391941bb25..aee8faebb45f5d45efdbf1c4ab797ba212c95727 100644
--- a/gn/BUILD.gn
+++ b/gn/BUILD.gn
@@ -39,6 +39,7 @@ config("debug_symbols") {
}
config("default") {
+ asmflags = []
cflags = [
"-O1",
"-fstrict-aliasing",
@@ -77,10 +78,18 @@ config("default") {
"-march=mips32r2",
"-mdspr2",
]
+ } else if (current_cpu == "x86") {
+ asmflags += [ "-m32" ]
+ cflags += [
+ "-m32",
+ "-msse2",
+ "-mfpmath=sse",
+ ]
+ ldflags += [ "-m32" ]
}
if (is_android) {
- asmflags = [
+ asmflags += [
"--target=$ndk_target",
"-B$ndk/toolchains/$ndk_gccdir-4.9/prebuilt/$ndk_host/$ndk_target/bin",
]
« no previous file with comments | « BUILD.gn ('k') | infra/bots/recipe_modules/flavor/gn_flavor.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698