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

Side by Side Diff: gn/BUILD.gn

Issue 2288813002: GN: release -> -O3, to match GYP (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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 libs += [ "unwind" ] 98 libs += [ "unwind" ]
99 } 99 }
100 } 100 }
101 101
102 if (is_linux) { 102 if (is_linux) {
103 libs = [ "pthread" ] 103 libs = [ "pthread" ]
104 } 104 }
105 } 105 }
106 106
107 config("release") { 107 config("release") {
108 cflags = [ "-Os" ] 108 cflags = [ "-O3" ]
109 defines = [ "NDEBUG" ] 109 defines = [ "NDEBUG" ]
110 } 110 }
111 111
112 config("executable") { 112 config("executable") {
113 if (is_mac) { 113 if (is_mac) {
114 ldflags = [ "-Wl,-rpath,@loader_path/." ] 114 ldflags = [ "-Wl,-rpath,@loader_path/." ]
115 } else if (is_linux) { 115 } else if (is_linux) {
116 ldflags = [ "-Wl,-rpath,\$ORIGIN" ] 116 ldflags = [ "-Wl,-rpath,\$ORIGIN" ]
117 } 117 }
118 } 118 }
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 } 189 }
190 190
191 tool("stamp") { 191 tool("stamp") {
192 command = "touch {{output}}" 192 command = "touch {{output}}"
193 } 193 }
194 194
195 tool("copy") { 195 tool("copy") {
196 command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})" 196 command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})"
197 } 197 }
198 } 198 }
OLDNEW
« 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