| OLD | NEW |
| 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 import("//build/toolchain/toolchain.gni") | 10 import("//build/toolchain/toolchain.gni") |
| (...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1091 | 1091 |
| 1092 config("rtti") { | 1092 config("rtti") { |
| 1093 if (is_win) { | 1093 if (is_win) { |
| 1094 cflags_cc = [ "/GR" ] | 1094 cflags_cc = [ "/GR" ] |
| 1095 } else { | 1095 } else { |
| 1096 cflags_cc = [ "-frtti" ] | 1096 cflags_cc = [ "-frtti" ] |
| 1097 } | 1097 } |
| 1098 } | 1098 } |
| 1099 config("no_rtti") { | 1099 config("no_rtti") { |
| 1100 # CFI diagnostics and UBsan vptr require RTTI. | 1100 # CFI diagnostics and UBsan vptr require RTTI. |
| 1101 if (!use_cfi_diag && !is_ubsan_vptr) { | 1101 if (!use_cfi_diag && !is_ubsan_vptr && !is_ubsan_security) { |
| 1102 if (is_win) { | 1102 if (is_win) { |
| 1103 cflags_cc = [ "/GR-" ] | 1103 cflags_cc = [ "/GR-" ] |
| 1104 } else { | 1104 } else { |
| 1105 cflags_cc = [ "-fno-rtti" ] | 1105 cflags_cc = [ "-fno-rtti" ] |
| 1106 cflags_objcc = cflags_cc | 1106 cflags_objcc = cflags_cc |
| 1107 } | 1107 } |
| 1108 } | 1108 } |
| 1109 } | 1109 } |
| 1110 | 1110 |
| 1111 # Warnings --------------------------------------------------------------------- | 1111 # Warnings --------------------------------------------------------------------- |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1463 | 1463 |
| 1464 if (is_ios || is_mac) { | 1464 if (is_ios || is_mac) { |
| 1465 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1465 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
| 1466 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1466 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
| 1467 config("enable_arc") { | 1467 config("enable_arc") { |
| 1468 common_flags = [ "-fobjc-arc" ] | 1468 common_flags = [ "-fobjc-arc" ] |
| 1469 cflags_objc = common_flags | 1469 cflags_objc = common_flags |
| 1470 cflags_objcc = common_flags | 1470 cflags_objcc = common_flags |
| 1471 } | 1471 } |
| 1472 } | 1472 } |
| OLD | NEW |