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

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

Issue 1374423002: Add UBsan vtpr support to GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-ubsan
Patch Set: Don't use libc++ Created 5 years, 2 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 | « build/config/BUILD.gn ('k') | build/config/sanitizers/BUILD.gn » ('j') | 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/ccache.gni") 9 import("//build/toolchain/ccache.gni")
10 10
(...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « build/config/BUILD.gn ('k') | build/config/sanitizers/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698