Skip to content

Commit

Permalink
Merge pull request flutter#2464 from collinjackson/enable_conditional…
Browse files Browse the repository at this point in the history
…_directives

Enable conditional directives
  • Loading branch information
collinjackson committed Mar 7, 2016
2 parents a5b4299 + 22d7bc4 commit d167f5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sky/engine/core/script/dart_init.cc
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ static const char* kDartBackgroundCompilationArgs[] = {
"--background_compilation",
};

static const char *kDartConditionalDirectivesArgs[] = {
"--conditional_directives",
};

static const char* kDartCheckedModeArgs[] = {
"--enable_asserts",
"--enable_type_checks",
Expand Down Expand Up @@ -324,6 +328,7 @@ void InitDartVM() {

Vector<const char*> args;
args.append(kDartProfilingArgs, arraysize(kDartProfilingArgs));
args.append(kDartConditionalDirectivesArgs, arraysize(kDartConditionalDirectivesArgs));

if (!IsRunningPrecompiledCode()) {
// The version of the VM setup to run precompiled code does not recognize
Expand Down
1 change: 1 addition & 0 deletions sky/tools/sky_snapshot/vm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ extern void* kDartIsolateSnapshotBuffer;
static const char* kDartArgs[] = {
"--enable_mirrors=false",
"--load_deferred_eagerly=true",
"--conditional_directives",
};

void InitDartVM() {
Expand Down

0 comments on commit d167f5b

Please sign in to comment.