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

Side by Side Diff: build/config/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 | « no previous file | build/config/compiler/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/allocator.gni") 5 import("//build/config/allocator.gni")
6 import("//build/config/chrome_build.gni") 6 import("//build/config/chrome_build.gni")
7 import("//build/config/crypto.gni") 7 import("//build/config/crypto.gni")
8 import("//build/config/features.gni") 8 import("//build/config/features.gni")
9 import("//build/config/sanitizers/sanitizers.gni") 9 import("//build/config/sanitizers/sanitizers.gni")
10 import("//build/config/ui.gni") 10 import("//build/config/ui.gni")
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 if (is_tsan) { 161 if (is_tsan) {
162 defines += [ 162 defines += [
163 "THREAD_SANITIZER", 163 "THREAD_SANITIZER",
164 "DYNAMIC_ANNOTATIONS_EXTERNAL_IMPL=1", 164 "DYNAMIC_ANNOTATIONS_EXTERNAL_IMPL=1",
165 "WTF_USE_DYNAMIC_ANNOTATIONS_NOIMPL=1", 165 "WTF_USE_DYNAMIC_ANNOTATIONS_NOIMPL=1",
166 ] 166 ]
167 } 167 }
168 if (is_msan) { 168 if (is_msan) {
169 defines += [ "MEMORY_SANITIZER" ] 169 defines += [ "MEMORY_SANITIZER" ]
170 } 170 }
171 if (is_ubsan) { 171 if (is_ubsan || is_ubsan_vptr) {
172 defines += [ "UNDEFINED_SANITIZER" ] 172 defines += [ "UNDEFINED_SANITIZER" ]
173 } 173 }
174 if (enable_webrtc) { 174 if (enable_webrtc) {
175 defines += [ "ENABLE_WEBRTC=1" ] 175 defines += [ "ENABLE_WEBRTC=1" ]
176 } 176 }
177 if (disable_ftp_support) { 177 if (disable_ftp_support) {
178 defines += [ "DISABLE_FTP_SUPPORT=1" ] 178 defines += [ "DISABLE_FTP_SUPPORT=1" ]
179 } 179 }
180 if (!enable_nacl) { 180 if (!enable_nacl) {
181 defines += [ "DISABLE_NACL" ] 181 defines += [ "DISABLE_NACL" ]
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 # This error doesn't happen every time. In VS2013, it seems if the .pch 449 # This error doesn't happen every time. In VS2013, it seems if the .pch
450 # file doesn't exist, no error will be generated (probably MS tested this 450 # file doesn't exist, no error will be generated (probably MS tested this
451 # case but forgot the other one?). To reproduce this error, do a build, 451 # case but forgot the other one?). To reproduce this error, do a build,
452 # then delete the precompile.c.obj file, then build again. 452 # then delete the precompile.c.obj file, then build again.
453 cflags_c = [ "/wd4206" ] 453 cflags_c = [ "/wd4206" ]
454 } else if (is_mac && !is_official_build && !use_goma) { 454 } else if (is_mac && !is_official_build && !use_goma) {
455 precompiled_header = "build/precompile.h" 455 precompiled_header = "build/precompile.h"
456 precompiled_source = "//build/precompile.h" 456 precompiled_source = "//build/precompile.h"
457 } 457 }
458 } 458 }
OLDNEW
« no previous file with comments | « no previous file | build/config/compiler/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698