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/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 Loading... |
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) { |
| 172 defines += [ "UNDEFINED_SANITIZER" ] |
| 173 } |
171 if (enable_webrtc) { | 174 if (enable_webrtc) { |
172 defines += [ "ENABLE_WEBRTC=1" ] | 175 defines += [ "ENABLE_WEBRTC=1" ] |
173 } | 176 } |
174 if (disable_ftp_support) { | 177 if (disable_ftp_support) { |
175 defines += [ "DISABLE_FTP_SUPPORT=1" ] | 178 defines += [ "DISABLE_FTP_SUPPORT=1" ] |
176 } | 179 } |
177 if (!enable_nacl) { | 180 if (!enable_nacl) { |
178 defines += [ "DISABLE_NACL" ] | 181 defines += [ "DISABLE_NACL" ] |
179 } | 182 } |
180 if (enable_extensions) { | 183 if (enable_extensions) { |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 # 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 |
447 # 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 |
448 # 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, |
449 # then delete the precompile.c.obj file, then build again. | 452 # then delete the precompile.c.obj file, then build again. |
450 cflags_c = [ "/wd4206" ] | 453 cflags_c = [ "/wd4206" ] |
451 } else if (is_mac && !is_official_build && !use_goma) { | 454 } else if (is_mac && !is_official_build && !use_goma) { |
452 precompiled_header = "build/precompile.h" | 455 precompiled_header = "build/precompile.h" |
453 precompiled_source = "//build/precompile.h" | 456 precompiled_source = "//build/precompile.h" |
454 } | 457 } |
455 } | 458 } |
OLD | NEW |