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

Side by Side Diff: gn/BUILD.gn

Issue 2322753002: GN: default to -O1 (Closed)
Patch Set: warning 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/core/SkGlyphCache.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 Google Inc. 1 # Copyright 2016 Google Inc.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 declare_args() { 6 declare_args() {
7 ar = "ar" 7 ar = "ar"
8 cc = "cc" 8 cc = "cc"
9 cxx = "c++" 9 cxx = "c++"
10 10
(...skipping 10 matching lines...) Expand all
21 21
22 compiler_prefix = "" 22 compiler_prefix = ""
23 } 23 }
24 24
25 config("no_rtti") { 25 config("no_rtti") {
26 cflags_cc = [ "-fno-rtti" ] 26 cflags_cc = [ "-fno-rtti" ]
27 } 27 }
28 28
29 config("default") { 29 config("default") {
30 cflags = [ 30 cflags = [
31 "-O1",
31 "-g", 32 "-g",
32 "-fstrict-aliasing", 33 "-fstrict-aliasing",
33 "-fPIC", 34 "-fPIC",
34 "-fvisibility=hidden", 35 "-fvisibility=hidden",
35 36
36 "-Werror", 37 "-Werror",
37 "-Wall", 38 "-Wall",
38 "-Wextra", 39 "-Wextra",
39 "-Winit-self", 40 "-Winit-self",
40 "-Wpointer-arith", 41 "-Wpointer-arith",
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 } 192 }
192 193
193 tool("stamp") { 194 tool("stamp") {
194 command = "touch {{output}}" 195 command = "touch {{output}}"
195 } 196 }
196 197
197 tool("copy") { 198 tool("copy") {
198 command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})" 199 command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})"
199 } 200 }
200 } 201 }
OLDNEW
« no previous file with comments | « no previous file | src/core/SkGlyphCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698