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/ccache.gni") | 9 import("//build/toolchain/ccache.gni") |
10 | 10 |
(...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
841 # rtti ------------------------------------------------------------------------ | 841 # rtti ------------------------------------------------------------------------ |
842 # | 842 # |
843 # Allows turning Run-Time Type Identification on or off. | 843 # Allows turning Run-Time Type Identification on or off. |
844 | 844 |
845 config("rtti") { | 845 config("rtti") { |
846 if (is_win) { | 846 if (is_win) { |
847 cflags_cc = [ "/GR" ] | 847 cflags_cc = [ "/GR" ] |
848 } | 848 } |
849 } | 849 } |
850 config("no_rtti") { | 850 config("no_rtti") { |
851 # CFI diagnostics require RTTI. | 851 # CFI diagnostics and UBsan vptr require RTTI. |
852 if (!use_cfi_diag) { | 852 if (!use_cfi_diag && !is_ubsan_vptr) { |
853 if (is_win) { | 853 if (is_win) { |
854 cflags_cc = [ "/GR-" ] | 854 cflags_cc = [ "/GR-" ] |
855 } else { | 855 } else { |
856 cflags_cc = [ "-fno-rtti" ] | 856 cflags_cc = [ "-fno-rtti" ] |
857 cflags_objcc = cflags_cc | 857 cflags_objcc = cflags_cc |
858 } | 858 } |
859 } | 859 } |
860 } | 860 } |
861 | 861 |
862 # Warnings --------------------------------------------------------------------- | 862 # Warnings --------------------------------------------------------------------- |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1168 if (symbol_level == 0) { | 1168 if (symbol_level == 0) { |
1169 configs = [ ":no_symbols" ] | 1169 configs = [ ":no_symbols" ] |
1170 } else if (symbol_level == 1) { | 1170 } else if (symbol_level == 1) { |
1171 configs = [ ":minimal_symbols" ] | 1171 configs = [ ":minimal_symbols" ] |
1172 } else if (symbol_level == 2) { | 1172 } else if (symbol_level == 2) { |
1173 configs = [ ":symbols" ] | 1173 configs = [ ":symbols" ] |
1174 } else { | 1174 } else { |
1175 assert(false) | 1175 assert(false) |
1176 } | 1176 } |
1177 } | 1177 } |
OLD | NEW |