Skip to content

Commit bfeebf0

Browse files
rmacnak-googleCommit Queue
authored andcommitted
[dartdev] Fix dart compile with the simulators.
Change-Id: Id27ca35f440ee71e0d91e2f8a851dc8269de24e4 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/466921 Commit-Queue: Ryan Macnak <[email protected]> Reviewed-by: Alexander Aprelev <[email protected]>
1 parent 091b726 commit bfeebf0

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

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

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -575,15 +575,13 @@ Remove debugging information from the output and save it separately to the speci
575575
return ['none'];
576576
}
577577

578-
switch (Target.current) {
579-
case Target.linuxX64:
580-
case Target.linuxArm64:
581-
return ['none', 'asan', 'msan', 'tsan'];
582-
case Target.linuxRiscv64:
583-
return ['none', 'asan', 'tsan'];
584-
default:
585-
return ['none'];
578+
final v = Platform.version;
579+
if (v.contains('"linux_x64"') || v.contains('"linux_arm64"')) {
580+
return ['none', 'asan', 'msan', 'tsan'];
581+
} else if (v.contains('"linux_riscv64"')) {
582+
return ['none', 'asan', 'tsan'];
586583
}
584+
return ['none'];
587585
}
588586

589587
@override

0 commit comments

Comments
 (0)