Index: runtime/BUILD.gn |
diff --git a/runtime/BUILD.gn b/runtime/BUILD.gn |
index bd091d9ae67f4d8a9e75022ed480d0d5961f509c..ad030b8f02012dc0ae935e6df4cd6bf4b0a74dcf 100644 |
--- a/runtime/BUILD.gn |
+++ b/runtime/BUILD.gn |
@@ -26,6 +26,8 @@ declare_args() { |
# this unspecified results in automatic target architecture detection. |
# Available options are: arm, arm64, mips, x64 and ia32 |
dart_target_arch = "" |
+ |
+ dart_experimental_interpreter = false |
} |
config("dart_public_config") { |
@@ -70,13 +72,19 @@ config("dart_precompiled_runtime_config") { |
print("Debug and release mode are mutually exclusive.") |
} |
assert(!dart_debug) |
- defines += ["DART_PRECOMPILED_RUNTIME"] |
+ |
+ if (!dart_experimental_interpreter) { |
+ defines += ["DART_PRECOMPILED_RUNTIME"] |
+ } |
} else if (dart_runtime_mode == "profile") { |
if (dart_debug) { |
print("Debug and profile mode are mutually exclusive.") |
} |
assert(!dart_debug) |
- defines += ["DART_PRECOMPILED_RUNTIME"] |
+ |
+ if (!dart_experimental_interpreter) { |
+ defines += ["DART_PRECOMPILED_RUNTIME"] |
+ } |
} |
} |
@@ -89,6 +97,10 @@ config("dart_precompiler_config") { |
config("dart_config") { |
defines = [] |
+ if (dart_experimental_interpreter) { |
+ dart_target_arch = "dbc" |
+ } |
+ |
if (dart_target_arch != "") { |
if (dart_target_arch == "arm") { |
defines += [ "TARGET_ARCH_ARM" ] |