OLD | NEW |
1 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 # TODO(zra): These build arguments should likely be moved to a gni file that is | 5 # TODO(zra): These build arguments should likely be moved to a gni file that is |
6 # included in BUILD.gn files that care about the values of the flags. For now, | 6 # included in BUILD.gn files that care about the values of the flags. For now, |
7 # since the GN build only happens as part of a Mojo build there is no need for | 7 # since the GN build only happens as part of a Mojo build there is no need for |
8 # the indirection. | 8 # the indirection. |
9 declare_args() { | 9 declare_args() { |
10 # Instead of using is_debug, we introduce a different flag for specifying a | 10 # Instead of using is_debug, we introduce a different flag for specifying a |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 if (dart_debug) { | 149 if (dart_debug) { |
150 cflags += [ | 150 cflags += [ |
151 "-O1", | 151 "-O1", |
152 ] | 152 ] |
153 } else { | 153 } else { |
154 cflags += [ | 154 cflags += [ |
155 "-O3", | 155 "-O3", |
156 ] | 156 ] |
157 } | 157 } |
158 | 158 |
159 if (is_asan) { | 159 if (defined(is_asan) && is_asan) { |
160 ldflags = [ | 160 ldflags = [ |
161 "-Wl,-u_sanitizer_options_link_helper", | 161 "-Wl,-u_sanitizer_options_link_helper", |
162 "-fsanitize=address", | 162 "-fsanitize=address", |
163 ] | 163 ] |
164 } | 164 } |
165 } | 165 } |
166 | 166 |
167 static_library("libdart") { | 167 static_library("libdart") { |
168 configs += [":dart_config", | 168 configs += [":dart_config", |
169 ":dart_product_config", | 169 ":dart_product_config", |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 "vm:libdart_lib_nosnapshot", | 223 "vm:libdart_lib_nosnapshot", |
224 "vm:libdart_lib", | 224 "vm:libdart_lib", |
225 "vm:libdart_vm", | 225 "vm:libdart_vm", |
226 "vm:libdart_platform", | 226 "vm:libdart_platform", |
227 "third_party/double-conversion/src:libdouble_conversion", | 227 "third_party/double-conversion/src:libdouble_conversion", |
228 ] | 228 ] |
229 sources = [ | 229 sources = [ |
230 "vm/libdart_dependency_helper.cc", | 230 "vm/libdart_dependency_helper.cc", |
231 ] | 231 ] |
232 } | 232 } |
OLD | NEW |