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

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

Issue 682843002: Adds ability to build for asan with gn (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 6 years, 1 month 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/BUILDCONFIG.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/crypto.gni") 6 import("//build/config/crypto.gni")
7 import("//build/config/features.gni") 7 import("//build/config/features.gni")
8 import("//build/config/ui.gni") 8 import("//build/config/ui.gni")
9 9
10 declare_args() { 10 declare_args() {
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 } 115 }
116 if (use_x11) { 116 if (use_x11) {
117 defines += [ "USE_X11=1" ] 117 defines += [ "USE_X11=1" ]
118 if (use_xi2_mt > 0) { 118 if (use_xi2_mt > 0) {
119 defines += [ "USE_XI2_MT=$use_xi2_mt" ] 119 defines += [ "USE_XI2_MT=$use_xi2_mt" ]
120 } 120 }
121 } 121 }
122 if (use_allocator != "tcmalloc") { 122 if (use_allocator != "tcmalloc") {
123 defines += [ "NO_TCMALLOC" ] 123 defines += [ "NO_TCMALLOC" ]
124 } 124 }
125 if (is_asan) {
126 defines += [
127 "ADDRESS_SANITIZER",
128 "MEMORY_TOOL_REPLACES_ALLOCATOR",
129 "MEMORY_SANITIZER_INITIAL_SIZE",
130 ]
131 }
125 if (enable_webrtc) { 132 if (enable_webrtc) {
126 defines += [ "ENABLE_WEBRTC=1" ] 133 defines += [ "ENABLE_WEBRTC=1" ]
127 } 134 }
128 if (disable_ftp_support) { 135 if (disable_ftp_support) {
129 defines += [ "DISABLE_FTP_SUPPORT=1" ] 136 defines += [ "DISABLE_FTP_SUPPORT=1" ]
130 } 137 }
131 if (!enable_nacl) { 138 if (!enable_nacl) {
132 defines += [ "DISABLE_NACL" ] 139 defines += [ "DISABLE_NACL" ]
133 } 140 }
134 if (enable_extensions) { 141 if (enable_extensions) {
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 "CoreText.framework", 300 "CoreText.framework",
294 "Foundation.framework", 301 "Foundation.framework",
295 "UIKit.framework", 302 "UIKit.framework",
296 ] 303 ]
297 } else if (is_linux) { 304 } else if (is_linux) {
298 libs = [ 305 libs = [
299 "dl", 306 "dl",
300 ] 307 ]
301 } 308 }
302 } 309 }
OLDNEW
« no previous file with comments | « no previous file | build/config/BUILDCONFIG.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698