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

Side by Side Diff: build/config/compiler/BUILD.gn

Issue 1234033005: Add Syzygy support to Windows GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 | « build/config/allocator.gni ('k') | build/config/sanitizers/sanitizers.gni » ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/chrome_build.gni") 6 import("//build/config/chrome_build.gni")
7 if (current_cpu == "arm") { 7 if (current_cpu == "arm") {
8 import("//build/config/arm.gni") 8 import("//build/config/arm.gni")
9 } 9 }
10 if (current_cpu == "mipsel" || current_cpu == "mips64el") { 10 if (current_cpu == "mipsel" || current_cpu == "mips64el") {
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 } 136 }
137 if (exec_script("//build/win/use_ansi_codes.py", [], "trim string") == 137 if (exec_script("//build/win/use_ansi_codes.py", [], "trim string") ==
138 "True") { 138 "True") {
139 cflags += [ 139 cflags += [
140 # cmd.exe doesn't understand ANSI escape codes by default, 140 # cmd.exe doesn't understand ANSI escape codes by default,
141 # so only enable them if something emulating them is around. 141 # so only enable them if something emulating them is around.
142 "-fansi-escape-codes", 142 "-fansi-escape-codes",
143 ] 143 ]
144 } 144 }
145 } 145 }
146
147 if (is_syzyasan) {
148 # SyzyAsan needs /PROFILE turned on to produce appropriate pdbs.
149 ldflags += [ "/PROFILE" ]
150 }
146 } else { 151 } else {
147 # Common GCC compiler flags setup. 152 # Common GCC compiler flags setup.
148 # -------------------------------- 153 # --------------------------------
149 cflags += [ "-fno-strict-aliasing" ] # See http://crbug.com/32204 154 cflags += [ "-fno-strict-aliasing" ] # See http://crbug.com/32204
150 cflags_cc += [ 155 cflags_cc += [
151 "-fno-threadsafe-statics", 156 "-fno-threadsafe-statics",
152 157
153 # Not exporting C++ inline functions can generally be applied anywhere 158 # Not exporting C++ inline functions can generally be applied anywhere
154 # so we do so here. Normal function visibility is controlled by 159 # so we do so here. Normal function visibility is controlled by
155 # //build/config/gcc:symbol_visibility_hidden. 160 # //build/config/gcc:symbol_visibility_hidden.
(...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1259 cflags += [ "-gsplit-dwarf" ] 1264 cflags += [ "-gsplit-dwarf" ]
1260 } 1265 }
1261 } 1266 }
1262 } 1267 }
1263 1268
1264 config("no_symbols") { 1269 config("no_symbols") {
1265 if (!is_win) { 1270 if (!is_win) {
1266 cflags = [ "-g0" ] 1271 cflags = [ "-g0" ]
1267 } 1272 }
1268 } 1273 }
OLDNEW
« no previous file with comments | « build/config/allocator.gni ('k') | build/config/sanitizers/sanitizers.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698