Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(985)

Unified Diff: runtime/BUILD.gn

Issue 1953173002: GN file updates to support using dbc. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: GN file updates to support using dbc. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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" ]
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698