| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 } | 55 } |
| 56 | 56 |
| 57 if (dart_product) { | 57 if (dart_product) { |
| 58 if (dart_debug) { | 58 if (dart_debug) { |
| 59 print("Debug and product mode are mutually exclusive.") | 59 print("Debug and product mode are mutually exclusive.") |
| 60 } | 60 } |
| 61 assert(!dart_debug) | 61 assert(!dart_debug) |
| 62 defines += ["PRODUCT"] | 62 defines += ["PRODUCT"] |
| 63 } | 63 } |
| 64 | 64 |
| 65 | 65 # Ideally this would only be enabled for gen_snapshot |
| 66 if (is_ios || is_mac) { | 66 defines += ["DART_PRECOMPILER"] |
| 67 defines += ["DART_PRECOMPILER"] | |
| 68 } | |
| 69 | 67 |
| 70 cflags = [ | 68 cflags = [ |
| 71 "-Werror", | 69 "-Werror", |
| 72 "-Wall", | 70 "-Wall", |
| 73 "-Wextra", # Also known as -W. | 71 "-Wextra", # Also known as -W. |
| 74 "-Wno-unused-parameter", | 72 "-Wno-unused-parameter", |
| 75 "-Wnon-virtual-dtor", | 73 "-Wnon-virtual-dtor", |
| 76 "-Wvla", | 74 "-Wvla", |
| 77 "-Wno-conversion-null", | 75 "-Wno-conversion-null", |
| 78 "-Woverloaded-virtual", | 76 "-Woverloaded-virtual", |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 "vm:libdart_lib_nosnapshot", | 252 "vm:libdart_lib_nosnapshot", |
| 255 "vm:libdart_lib", | 253 "vm:libdart_lib", |
| 256 "vm:libdart_vm", | 254 "vm:libdart_vm", |
| 257 "vm:libdart_platform", | 255 "vm:libdart_platform", |
| 258 "third_party/double-conversion/src:libdouble_conversion", | 256 "third_party/double-conversion/src:libdouble_conversion", |
| 259 ] | 257 ] |
| 260 sources = [ | 258 sources = [ |
| 261 "vm/libdart_dependency_helper.cc", | 259 "vm/libdart_dependency_helper.cc", |
| 262 ] | 260 ] |
| 263 } | 261 } |
| OLD | NEW |