We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61ad9f1 commit 5c245a9Copy full SHA for 5c245a9
1 file changed
build/dart/internal/gen_dartcli_call.gni
@@ -2,6 +2,7 @@
2
# Use of this source code is governed by a BSD-style license that can be
3
# found in the LICENSE file.
4
5
+import("//flutter/build/dart/dart.gni")
6
import("//flutter/build/dart/internal/gen_executable_call.gni")
7
import("//flutter/common/config.gni")
8
@@ -24,7 +25,11 @@ template("gen_dartcli_call") {
24
25
if (is_win) {
26
ext = ".exe"
27
}
- dart = rebase_path("$host_prebuilt_dart_sdk/bin/dart$ext")
28
+ if (flutter_prebuilt_dart_sdk) {
29
+ dart = rebase_path("$host_prebuilt_dart_sdk/bin/dart$ext")
30
+ } else {
31
+ dart = rebase_path("$root_out_dir/dart-sdk/bin/dart$ext")
32
+ }
33
34
# Add default arguments to the Dart CLI.
35
dart_args = []
0 commit comments