Skip to content

Commit 438a14c

Browse files
sstricklCommit Queue
authored andcommitted
[pkg/dartdev] Allow cross compilation to Linux ARM/RISCV64.
Note that Linux ARM cross compilation is not currently supported on Windows. Follow-up CL to: * https://dart-review.googlesource.com/c/sdk/+/437720 * https://dart-review.googlesource.com/c/recipes/+/437740 TEST=ci Issue: #28617 Change-Id: Ia91c9fa44101f7b4202ab717fe1cba6a3470bf31 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/437760 Reviewed-by: Ivan Inozemtsev <[email protected]> Commit-Queue: Tess Strickland <[email protected]>
1 parent a1955aa commit 438a14c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/dartdev/lib/src/commands/compile.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,10 @@ class CompileNativeCommand extends CompileSubcommandCommand {
467467
static const String exeCmdName = 'exe';
468468
static const String aotSnapshotCmdName = 'aot-snapshot';
469469
static final supportedTargetPlatforms = <Target>{
470+
// ARM cross-compilation is not supported on Windows currently.
471+
if (!Platform.isWindows) Target.linuxArm,
470472
Target.linuxArm64,
473+
Target.linuxRiscv64,
471474
Target.linuxX64
472475
};
473476

0 commit comments

Comments
 (0)