| 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 declare_args() { | 5 declare_args() { |
| 6 # Instead of using is_debug, we introduce a different flag for specifying a | 6 # Instead of using is_debug, we introduce a different flag for specifying a |
| 7 # Debug build of Dart so that clients can still use a Release build of Dart | 7 # Debug build of Dart so that clients can still use a Release build of Dart |
| 8 # while themselves doing a Debug build. | 8 # while themselves doing a Debug build. |
| 9 dart_debug = false | 9 dart_debug = false |
| 10 | 10 |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 "-Wvla", | 156 "-Wvla", |
| 157 "-Wno-conversion-null", | 157 "-Wno-conversion-null", |
| 158 "-Woverloaded-virtual", | 158 "-Woverloaded-virtual", |
| 159 "-g3", | 159 "-g3", |
| 160 "-ggdb3", | 160 "-ggdb3", |
| 161 "-fno-rtti", | 161 "-fno-rtti", |
| 162 "-fno-exceptions", | 162 "-fno-exceptions", |
| 163 ] | 163 ] |
| 164 | 164 |
| 165 if (dart_debug) { | 165 if (dart_debug) { |
| 166 cflags += [ "-O1" ] | 166 cflags += [ "-O2" ] |
| 167 } else { | 167 } else { |
| 168 cflags += [ "-O3" ] | 168 cflags += [ "-O3" ] |
| 169 } | 169 } |
| 170 | 170 |
| 171 ldflags = [] | 171 ldflags = [] |
| 172 if (defined(is_asan) && is_asan) { | 172 if (defined(is_asan) && is_asan) { |
| 173 ldflags += [ "-fsanitize=address" ] | 173 ldflags += [ "-fsanitize=address" ] |
| 174 } | 174 } |
| 175 if (defined(is_msan) && is_msan) { | 175 if (defined(is_msan) && is_msan) { |
| 176 ldflags += [ "-fsanitize=memory" ] | 176 ldflags += [ "-fsanitize=memory" ] |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 "third_party/double-conversion/src:libdouble_conversion", | 301 "third_party/double-conversion/src:libdouble_conversion", |
| 302 "vm:libdart_lib", | 302 "vm:libdart_lib", |
| 303 "vm:libdart_lib_nosnapshot", | 303 "vm:libdart_lib_nosnapshot", |
| 304 "vm:libdart_vm", | 304 "vm:libdart_vm", |
| 305 "vm:libdart_vm_nosnapshot", | 305 "vm:libdart_vm_nosnapshot", |
| 306 ] | 306 ] |
| 307 sources = [ | 307 sources = [ |
| 308 "vm/libdart_dependency_helper.cc", | 308 "vm/libdart_dependency_helper.cc", |
| 309 ] | 309 ] |
| 310 } | 310 } |
| OLD | NEW |