Skip to content

Commit

Permalink
Fix prebuilt Dart SDK use on Windows (flutter#27264)
Browse files Browse the repository at this point in the history
  • Loading branch information
zanderso authored Jul 9, 2021
1 parent 9cd9811 commit 8690487
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions web_sdk/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,17 @@ template("_dartdevc") {
inputs = invoker.inputs
outputs = invoker.outputs

dartdevc =
rebase_path("$host_prebuilt_dart_sdk/bin/dartdevc", root_out_dir)
args = [ dartdevc ] + invoker.args
ext = ""
if (is_win) {
ext = ".exe"
}
dart = rebase_path("$host_prebuilt_dart_sdk/bin/dart$ext", root_out_dir)
dartdevc = rebase_path(
"$host_prebuilt_dart_sdk/bin/snapshots/dartdevc.dart.snapshot")
args = [
dart,
dartdevc,
] + invoker.args
}
} else {
prebuilt_dart_action(target_name) {
Expand Down Expand Up @@ -158,7 +166,11 @@ template("_kernel_worker") {
inputs = invoker.inputs
outputs = invoker.outputs

dart = rebase_path("$host_prebuilt_dart_sdk/bin/dart", root_out_dir)
ext = ""
if (is_win) {
ext = ".exe"
}
dart = rebase_path("$host_prebuilt_dart_sdk/bin/dart$ext", root_out_dir)
kernel_worker = rebase_path(
"$host_prebuilt_dart_sdk/bin/snapshots/kernel_worker.dart.snapshot")

Expand Down

0 comments on commit 8690487

Please sign in to comment.