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

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

Issue 1831213002: Remove /RTC1 switch to let debug mini_installer build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Returning to original, correct, approved patch. Created 4 years, 9 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 (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 import("//build/config/compiler/compiler.gni") 7 import("//build/config/compiler/compiler.gni")
8 import("//build/config/nacl/config.gni") 8 import("//build/config/nacl/config.gni")
9 import("//build/toolchain/cc_wrapper.gni") 9 import("//build/toolchain/cc_wrapper.gni")
10 10
(...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after
1179 } 1179 }
1180 ldflags = common_optimize_on_ldflags 1180 ldflags = common_optimize_on_ldflags
1181 } 1181 }
1182 1182
1183 # Turn off optimizations. 1183 # Turn off optimizations.
1184 config("no_optimize") { 1184 config("no_optimize") {
1185 if (is_win) { 1185 if (is_win) {
1186 cflags = [ 1186 cflags = [
1187 "/Od", # Disable optimization. 1187 "/Od", # Disable optimization.
1188 "/Ob0", # Disable all inlining (on by default). 1188 "/Ob0", # Disable all inlining (on by default).
1189 "/RTC1", # Runtime checks for stack frame and uninitialized variables.
1190 ] 1189 ]
1191 } else if (is_android && !android_full_debug) { 1190 } else if (is_android && !android_full_debug) {
1192 # On Android we kind of optimize some things that don't affect debugging 1191 # On Android we kind of optimize some things that don't affect debugging
1193 # much even when optimization is disabled to get the binary size down. 1192 # much even when optimization is disabled to get the binary size down.
1194 cflags = [ 1193 cflags = [
1195 "-Os", 1194 "-Os",
1196 "-fdata-sections", 1195 "-fdata-sections",
1197 "-ffunction-sections", 1196 "-ffunction-sections",
1198 ] 1197 ]
1199 1198
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
1351 1350
1352 if (is_ios || is_mac) { 1351 if (is_ios || is_mac) {
1353 # On Mac and iOS, this enables support for ARC (automatic ref-counting). 1352 # On Mac and iOS, this enables support for ARC (automatic ref-counting).
1354 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. 1353 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html.
1355 config("enable_arc") { 1354 config("enable_arc") {
1356 common_flags = [ "-fobjc-arc" ] 1355 common_flags = [ "-fobjc-arc" ]
1357 cflags_objc = common_flags 1356 cflags_objc = common_flags
1358 cflags_objcc = common_flags 1357 cflags_objcc = common_flags
1359 } 1358 }
1360 } 1359 }
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