提交 22d7bc4a 编写于 作者: C Collin Jackson

Enable conditional directives

上级 98cc27d0
......@@ -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",
......@@ -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
......
......@@ -16,6 +16,7 @@ extern void* kDartIsolateSnapshotBuffer;
static const char* kDartArgs[] = {
"--enable_mirrors=false",
"--load_deferred_eagerly=true",
"--conditional_directives",
};
void InitDartVM() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册