mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Don't enable checked mode for Fuchsia release builds (#3173)
Temporary until precompiled code works on Fuchsia
This commit is contained in:
parent
9f65114e20
commit
aed8353b89
@ -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));
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user