[build] Fix Windows ARM64.
There is no kernel service snapshot in the Windows ARM64 SDK. Change-Id: I735524efb95b4951a9d668d096ba97e41c469426 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/449603 Reviewed-by: Alexander Aprelev <aam@google.com> Commit-Queue: Ryan Macnak <rmacnak@google.com>
This commit is contained in:
committed by
Commit Queue
parent
03d0629a69
commit
bf6edc78c0
@@ -132,7 +132,7 @@ template("_prebuilt_tool_action") {
|
||||
])
|
||||
script = "$_dart_root/build/gn_run_binary.py"
|
||||
|
||||
inputs = []
|
||||
inputs = [ invoker.binary ]
|
||||
if (defined(invoker.inputs)) {
|
||||
inputs += invoker.inputs
|
||||
}
|
||||
@@ -210,7 +210,6 @@ template("prebuilt_dart_action") {
|
||||
_prebuilt_tool_action(target_name) {
|
||||
forward_variables_from(invoker, "*")
|
||||
binary = "$_dart_root/tools/sdks/dart-sdk/bin/dart$executable_suffix"
|
||||
dfe = "$_dart_root/tools/sdks/dart-sdk/bin/snapshots/kernel-service.dart.snapshot"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -282,6 +282,13 @@ trace to find the place to insert the appropriate support.
|
||||
self.unsupported('rewrapper', arg)
|
||||
|
||||
def parse_dart(self):
|
||||
self.extra_paths.add(
|
||||
self.rebase(os.path.join(self.dart_subdir, 'dartvm')))
|
||||
self.extra_paths.add(
|
||||
self.rebase(
|
||||
os.path.join(self.dart_subdir,
|
||||
'snapshots/kernel-service.dart.snapshot')))
|
||||
|
||||
while self.has_next_arg:
|
||||
arg = self.next_arg()
|
||||
if self.get_option(['--dfe']):
|
||||
|
||||
Reference in New Issue
Block a user