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

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

Issue 289953004: Add GPU command buffer sevice and protobuf to GN build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « BUILD.gn ('k') | build/config/gcc/gcc_version.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 2d9564f3e1d1d47aa74c2a8fd8fa57da05c356e2..0e0179f5b107d2b4aabdec57fbc7c31cb1f4ec8a 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -703,12 +703,6 @@ if (is_win) {
"-Wl,--gc-sections",
]
}
-
- if (is_android || is_ios) {
- common_optimize_on_cflags += [ "-Os" ]
- } else {
- common_optimize_on_cflags += [ "-O2" ]
- }
}
# Default "optimization on" config. On Windows, this favors size over speed.
@@ -719,6 +713,14 @@ config("optimize") {
cflags += [
"/Os", # favor size over speed.
]
+ } else if (is_android || is_ios) {
+ cflags += [
+ "-Os", # Favor size over speed.
+ ]
+ } else {
+ cflags += [
+ "-O2",
+ ]
}
}
@@ -756,6 +758,10 @@ config("optimize_max") {
"/Ot", # Favor speed over size.
"/GL", # Whole program optimization.
]
+ } else {
+ cflags += [
+ "-O2",
+ ]
}
}
« no previous file with comments | « BUILD.gn ('k') | build/config/gcc/gcc_version.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698