Move GN default argument to a .gni import, to avoid duplicate loads.

Bug:
Change-Id: I1e6d2cfe2e2aec5a122c431963a2b0a9f79af652
R=athom@google.com,rnystrom@google.com
TBR=rnystrom@google.com,zra@google.com
Reviewed-on: https://dart-review.googlesource.com/28700
Reviewed-by: William Hesse <whesse@google.com>
This commit is contained in:
William Hesse 2017-12-12 13:50:01 +00:00
parent d1ed915244
commit 455b177ebb
2 changed files with 5 additions and 7 deletions

View file

@ -14,13 +14,6 @@ import("io_impl_sources.gni")
import("io_sources.gni")
import("vmservice/vmservice_sources.gni")
declare_args() {
# Controls the kind of core snapshot linked into the standalone VM. Using a
# core-jit snapshot breaks the ability to change various flags that affect
# code generation.
dart_core_snapshot_kind = "core"
}
# Generate a resources.cc file for the service isolate without Observatory.
action("gen_resources_cc") {
visibility = [ ":*" ] # Only targets in this file can see this.

View file

@ -47,4 +47,9 @@ declare_args() {
# Whether to link the standalone VM against tcmalloc. The standalone build of
# the VM enables this only for Linux builds.
dart_use_tcmalloc = false
# Controls the kind of core snapshot linked into the standalone VM. Using a
# core-jit snapshot breaks the ability to change various flags that affect
# code generation.
dart_core_snapshot_kind = "core"
}