Fix gen_dartcli_call in --no-prebuilt-dart-sdk. (flutter/engine#55558)
Follow-up to https://github.com/flutter/engine/pull/55475 Test: `flutter/tools/gn --no-prebuilt-dart-sdk --unoptimized --runtime-mode debug && ninja -C out/host_debug_unopt`
This commit is contained in:
parent
347c1fc6a6
commit
bfd2fa3e8d
@ -2,6 +2,7 @@
|
|||||||
# Use of this source code is governed by a BSD-style license that can be
|
# Use of this source code is governed by a BSD-style license that can be
|
||||||
# found in the LICENSE file.
|
# found in the LICENSE file.
|
||||||
|
|
||||||
|
import("//flutter/build/dart/dart.gni")
|
||||||
import("//flutter/build/dart/internal/gen_executable_call.gni")
|
import("//flutter/build/dart/internal/gen_executable_call.gni")
|
||||||
import("//flutter/common/config.gni")
|
import("//flutter/common/config.gni")
|
||||||
|
|
||||||
@ -24,7 +25,11 @@ template("gen_dartcli_call") {
|
|||||||
if (is_win) {
|
if (is_win) {
|
||||||
ext = ".exe"
|
ext = ".exe"
|
||||||
}
|
}
|
||||||
dart = rebase_path("$host_prebuilt_dart_sdk/bin/dart$ext")
|
if (flutter_prebuilt_dart_sdk) {
|
||||||
|
dart = rebase_path("$host_prebuilt_dart_sdk/bin/dart$ext")
|
||||||
|
} else {
|
||||||
|
dart = rebase_path("$root_out_dir/dart-sdk/bin/dart$ext")
|
||||||
|
}
|
||||||
|
|
||||||
# Add default arguments to the Dart CLI.
|
# Add default arguments to the Dart CLI.
|
||||||
dart_args = []
|
dart_args = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user