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

Unified Diff: utils/application_snapshot.gni

Issue 2940513002: Revert "[fuchsia] Prepare for setting the Dart target architecture appropriately in the host binari… (Closed)
Patch Set: Created 3 years, 6 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 | « runtime/vm/BUILD.gn ('k') | utils/dartanalyzer/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/application_snapshot.gni
diff --git a/utils/application_snapshot.gni b/utils/application_snapshot.gni
index f2d83193cddd1e7a305d2ddd2085ee090af1f4e6..9b5278672c0a1cd7b45b253fa21e723bbc56b852 100644
--- a/utils/application_snapshot.gni
+++ b/utils/application_snapshot.gni
@@ -10,9 +10,6 @@ declare_args() {
# Default to building app-jit snapshots. The simulator and cross builds
# override this to script snapshots to cut down on build time.
dart_snapshot_kind = "app-jit"
- if (target_cpu != host_cpu) {
- dart_snapshot_kind = "script"
- }
}
template("application_snapshot") {
@@ -28,7 +25,7 @@ template("application_snapshot") {
if (defined(invoker.deps)) {
extra_deps += invoker.deps
}
- extra_inputs = [ main_dart ]
+ extra_inputs = [main_dart]
if (defined(invoker.inputs)) {
extra_inputs += invoker.inputs
}
@@ -50,22 +47,16 @@ template("application_snapshot") {
abs_output = rebase_path(output)
main_file = rebase_path(main_dart)
- args = [
- "--packages=$dot_packages",
- "--snapshot=$abs_output",
- ]
+ args = [ "--packages=$dot_packages",
+ "--snapshot=$abs_output" ]
if (dart_snapshot_kind == "script") {
- args += [
- "--snapshot-kind=script",
- main_file,
- ]
+ args += ["--snapshot-kind=script",
+ main_file ]
assert(training_args != "", "Ignoring unused argument")
} else if (dart_snapshot_kind == "app-jit") {
- args += [
- "--snapshot-kind=app-jit",
- main_file,
- ] + training_args
+ args += ["--snapshot-kind=app-jit",
+ main_file ] + training_args
} else {
assert(false, "Bad dart_snapshot_kind: $dart_snapshot_kind")
}
« no previous file with comments | « runtime/vm/BUILD.gn ('k') | utils/dartanalyzer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698