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

Side by Side Diff: gn/BUILDCONFIG.gn

Issue 2289343002: GN: add sanitize arg (Closed)
Patch Set: rebase Created 4 years, 3 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
OLDNEW
1 # Copyright 2016 Google Inc. 1 # Copyright 2016 Google Inc.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # It's best to keep the names and defaults of is_foo flags consistent with Chrom e. 6 # It's best to keep the names and defaults of is_foo flags consistent with Chrom e.
7 7
8 declare_args() { 8 declare_args() {
9 is_debug = true 9 is_debug = true
10 is_component_build = false 10 is_component_build = false
11 ndk = "" 11 ndk = ""
12 sanitize = ""
12 } 13 }
13 14
14 # Platform detection 15 # Platform detection
15 if (target_os == "") { 16 if (target_os == "") {
16 target_os = host_os 17 target_os = host_os
17 if (ndk != "") { 18 if (ndk != "") {
18 target_os = "android" 19 target_os = "android"
19 } 20 }
20 } 21 }
21 if (current_os == "") { 22 if (current_os == "") {
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 125
125 set_defaults("component") { 126 set_defaults("component") {
126 configs = default_configs 127 configs = default_configs
127 if (!is_component_build) { 128 if (!is_component_build) {
128 complete_static_lib = true 129 complete_static_lib = true
129 } 130 }
130 } 131 }
131 132
132 # For now, we support GCC-like toolchains, including Clang. 133 # For now, we support GCC-like toolchains, including Clang.
133 set_default_toolchain("//gn:gcc_like") 134 set_default_toolchain("//gn:gcc_like")
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698