Skip to content

Commit 5c245a9

Browse files
committed
Fix gen_dartcli_call in --no-prebuilt-dart-sdk.
Follow-up to flutter#55475
1 parent 61ad9f1 commit 5c245a9

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

build/dart/internal/gen_dartcli_call.gni

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Use of this source code is governed by a BSD-style license that can be
33
# found in the LICENSE file.
44

5+
import("//flutter/build/dart/dart.gni")
56
import("//flutter/build/dart/internal/gen_executable_call.gni")
67
import("//flutter/common/config.gni")
78

@@ -24,7 +25,11 @@ template("gen_dartcli_call") {
2425
if (is_win) {
2526
ext = ".exe"
2627
}
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+
}
2833

2934
# Add default arguments to the Dart CLI.
3035
dart_args = []

0 commit comments

Comments
 (0)