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/toolchain/ccache.gni") | 8 import("//build/toolchain/ccache.gni") |
9 | 9 |
10 if (current_cpu == "arm") { | 10 if (current_cpu == "arm") { |
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
824 # rtti ------------------------------------------------------------------------ | 824 # rtti ------------------------------------------------------------------------ |
825 # | 825 # |
826 # Allows turning Run-Time Type Identification on or off. | 826 # Allows turning Run-Time Type Identification on or off. |
827 | 827 |
828 config("rtti") { | 828 config("rtti") { |
829 if (is_win) { | 829 if (is_win) { |
830 cflags_cc = [ "/GR" ] | 830 cflags_cc = [ "/GR" ] |
831 } | 831 } |
832 } | 832 } |
833 config("no_rtti") { | 833 config("no_rtti") { |
834 # CFI diagnostics require RTTI. | 834 # CFI diagnostics and UBsan vptr require RTTI. |
835 if (!use_cfi_diag) { | 835 if (!use_cfi_diag && !is_ubsan_vptr) { |
836 if (is_win) { | 836 if (is_win) { |
837 cflags_cc = [ "/GR-" ] | 837 cflags_cc = [ "/GR-" ] |
838 } else { | 838 } else { |
839 cflags_cc = [ "-fno-rtti" ] | 839 cflags_cc = [ "-fno-rtti" ] |
840 cflags_objcc = cflags_cc | 840 cflags_objcc = cflags_cc |
841 } | 841 } |
842 } | 842 } |
843 } | 843 } |
844 | 844 |
845 # Warnings --------------------------------------------------------------------- | 845 # Warnings --------------------------------------------------------------------- |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1135 if (symbol_level == 0) { | 1135 if (symbol_level == 0) { |
1136 configs = [ ":no_symbols" ] | 1136 configs = [ ":no_symbols" ] |
1137 } else if (symbol_level == 1) { | 1137 } else if (symbol_level == 1) { |
1138 configs = [ ":minimal_symbols" ] | 1138 configs = [ ":minimal_symbols" ] |
1139 } else if (symbol_level == 2) { | 1139 } else if (symbol_level == 2) { |
1140 configs = [ ":symbols" ] | 1140 configs = [ ":symbols" ] |
1141 } else { | 1141 } else { |
1142 assert(false) | 1142 assert(false) |
1143 } | 1143 } |
1144 } | 1144 } |
OLD | NEW |