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

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

Issue 1228873007: Fix the GN "no_rtti" config for objective-c++ files. (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 | « 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 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 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after
1027 config("rtti") { 1027 config("rtti") {
1028 if (is_win) { 1028 if (is_win) {
1029 cflags_cc = [ "/GR" ] 1029 cflags_cc = [ "/GR" ]
1030 } 1030 }
1031 } 1031 }
1032 config("no_rtti") { 1032 config("no_rtti") {
1033 if (is_win) { 1033 if (is_win) {
1034 cflags_cc = [ "/GR-" ] 1034 cflags_cc = [ "/GR-" ]
1035 } else { 1035 } else {
1036 cflags_cc = [ "-fno-rtti" ] 1036 cflags_cc = [ "-fno-rtti" ]
1037 cflags_objcc = cflags_cc
1037 } 1038 }
1038 } 1039 }
1039 1040
1040 # Warnings --------------------------------------------------------------------- 1041 # Warnings ---------------------------------------------------------------------
1041 1042
1042 # This will generate warnings when using Clang if code generates exit-time 1043 # This will generate warnings when using Clang if code generates exit-time
1043 # destructors, which will slow down closing the program. 1044 # destructors, which will slow down closing the program.
1044 # TODO(thakis): Make this a blacklist instead, http://crbug.com/101600 1045 # TODO(thakis): Make this a blacklist instead, http://crbug.com/101600
1045 config("wexit_time_destructors") { 1046 config("wexit_time_destructors") {
1046 # TODO: Enable on Windows too, http://crbug.com/404525 1047 # TODO: Enable on Windows too, http://crbug.com/404525
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
1258 cflags += [ "-gsplit-dwarf" ] 1259 cflags += [ "-gsplit-dwarf" ]
1259 } 1260 }
1260 } 1261 }
1261 } 1262 }
1262 1263
1263 config("no_symbols") { 1264 config("no_symbols") {
1264 if (!is_win) { 1265 if (!is_win) {
1265 cflags = [ "-g0" ] 1266 cflags = [ "-g0" ]
1266 } 1267 }
1267 } 1268 }
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