未验证 提交 c609dcdd 编写于 作者: Z Zachary Anderson 提交者: GitHub

[fuchsia] Fix AOT debug builds (#4787)

上级 7eb06c1b
......@@ -595,16 +595,20 @@ void InitDartVM(const uint8_t* vm_snapshot_data,
arraysize(kDartPrecompilationArgs));
}
#if defined(OS_FUCHSIA) && defined(NDEBUG)
#if defined(OS_FUCHSIA)
#if defined(NDEBUG)
// Do not enable checked mode for Fuchsia release builds
// TODO(mikejurka): remove this once precompiled code is working on Fuchsia
const bool use_checked_mode = false;
#else
#else // !defined(NDEBUG)
const bool use_checked_mode = true;
#endif // !defined(NDEBUG)
#else // !defined(OS_FUCHSIA)
// Enable checked mode if we are not running precompiled code. We run non-
// precompiled code only in the debug product mode.
const bool use_checked_mode =
!IsRunningPrecompiledCode() && !settings.dart_non_checked_mode;
#endif
#endif // !defined(OS_FUCHSIA)
#if FLUTTER_RUNTIME_MODE == FLUTTER_RUNTIME_MODE_DEBUG
// Debug mode uses the JIT, disable code page write protection to avoid
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册