Skip to content

Commit

Permalink
Don't enable checked mode for Fuchsia release builds (flutter#3173)
Browse files Browse the repository at this point in the history
Temporary until precompiled code works on Fuchsia
  • Loading branch information
mikejurka authored Oct 25, 2016
1 parent 9f65114 commit aed8353
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions runtime/dart_init.cc
Original file line number Diff line number Diff line change
Expand Up @@ -606,9 +606,15 @@ void InitDartVM() {
arraysize(kDartPrecompilationArgs));
}

#if defined(OS_FUCHSIA) && defined(NDEBUG)
if (false) {
// Do not enable checked mode for Fuchsia release builds
// TODO(mikejurka): remove this once precompiled code is working on Fuchsia
#else
if (!IsRunningPrecompiledCode()) {
// Enable checked mode if we are not running precompiled code. We run non-
// precompiled code only in the debug product mode.
#endif
PushBackAll(&args, kDartCheckedModeArgs, arraysize(kDartCheckedModeArgs));
}

Expand Down

0 comments on commit aed8353

Please sign in to comment.