| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 assert(false) | 146 assert(false) |
| 147 } | 147 } |
| 148 } | 148 } |
| 149 | 149 |
| 150 if (dart_debug) { | 150 if (dart_debug) { |
| 151 defines += ["DEBUG"] | 151 defines += ["DEBUG"] |
| 152 } else { | 152 } else { |
| 153 defines += ["NDEBUG"] | 153 defines += ["NDEBUG"] |
| 154 } | 154 } |
| 155 | 155 |
| 156 cflags = [ | 156 if (!is_win) { |
| 157 "-Werror", | 157 cflags = [ |
| 158 "-Wall", | 158 "-Werror", |
| 159 "-Wextra", # Also known as -W. | 159 "-Wall", |
| 160 "-Wno-unused-parameter", | 160 "-Wextra", # Also known as -W. |
| 161 "-Wnon-virtual-dtor", | 161 "-Wno-unused-parameter", |
| 162 "-Wvla", | 162 "-Wnon-virtual-dtor", |
| 163 "-Wno-conversion-null", | 163 "-Wvla", |
| 164 "-Woverloaded-virtual", | 164 "-Wno-conversion-null", |
| 165 "-g3", | 165 "-Woverloaded-virtual", |
| 166 "-ggdb3", | 166 "-g3", |
| 167 "-fno-rtti", | 167 "-ggdb3", |
| 168 "-fno-exceptions", | 168 "-fno-rtti", |
| 169 ] | 169 "-fno-exceptions", |
| 170 ] |
| 170 | 171 |
| 171 if (dart_debug) { | 172 if (dart_debug) { |
| 172 cflags += [ | 173 cflags += [ |
| 173 "-O1", | 174 "-O1", |
| 174 ] | 175 ] |
| 175 } else { | 176 } else { |
| 176 cflags += [ | 177 cflags += [ |
| 177 "-O3", | 178 "-O3", |
| 178 ] | 179 ] |
| 179 } | 180 } |
| 180 | 181 |
| 181 if (defined(is_asan) && is_asan) { | 182 if (defined(is_asan) && is_asan) { |
| 182 ldflags = [ | 183 ldflags = [ |
| 183 "-Wl,-u_sanitizer_options_link_helper", | 184 "-Wl,-u_sanitizer_options_link_helper", |
| 184 "-fsanitize=address", | 185 "-fsanitize=address", |
| 185 ] | 186 ] |
| 187 } |
| 186 } | 188 } |
| 187 } | 189 } |
| 188 | 190 |
| 189 template("libdart_library") { | 191 template("libdart_library") { |
| 190 extra_configs = [] | 192 extra_configs = [] |
| 191 if (defined(invoker.extra_configs)) { | 193 if (defined(invoker.extra_configs)) { |
| 192 extra_configs += invoker.extra_configs | 194 extra_configs += invoker.extra_configs |
| 193 } | 195 } |
| 194 extra_deps = [] | 196 extra_deps = [] |
| 195 if (defined(invoker.extra_deps)) { | 197 if (defined(invoker.extra_deps)) { |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 "vm:libdart_lib_nosnapshot", | 322 "vm:libdart_lib_nosnapshot", |
| 321 "vm:libdart_lib", | 323 "vm:libdart_lib", |
| 322 "vm:libdart_vm", | 324 "vm:libdart_vm", |
| 323 "vm:libdart_platform", | 325 "vm:libdart_platform", |
| 324 "third_party/double-conversion/src:libdouble_conversion", | 326 "third_party/double-conversion/src:libdouble_conversion", |
| 325 ] | 327 ] |
| 326 sources = [ | 328 sources = [ |
| 327 "vm/libdart_dependency_helper.cc", | 329 "vm/libdart_dependency_helper.cc", |
| 328 ] | 330 ] |
| 329 } | 331 } |
| OLD | NEW |