Skip to content

Commit

Permalink
Fix setup.dart error
Browse files Browse the repository at this point in the history
  • Loading branch information
chen08209 committed Jul 18, 2024
1 parent 3bc3172 commit ca946c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.dart
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ class BuildCommand extends Command {
final currentArches =
arches.where((element) => element.name == archName).toList();
final arch = currentArches.isEmpty ? null : currentArches.first;
if (arch == null && !Platform.isAndroid) {
if (arch == null && platform == PlatformType.windows) {
throw "Invalid arch";
}
await _buildLib(arch);
Expand Down

0 comments on commit ca946c1

Please sign in to comment.