Skip to content

Commit

Permalink
Compile native executables for 32-bit platforms (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 authored Dec 15, 2023
1 parent 423850f commit 3c5a2cc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.7.1

* Compile native executables for 32-bit Dart SDKs.

## 2.7.0

* The `package:cli_pkg/js.dart` library can now be used by the Dart VM.
Expand Down
8 changes: 2 additions & 6 deletions lib/src/standalone.dart
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,10 @@ void addStandaloneTasks() {
///
/// We can only use the native executable on the current operating system *and*
/// on 64-bit machines, because currently Dart doesn't support cross-compilation
/// (dart-lang/sdk#28617) and only 64-bit Dart SDKs support `dart compile exe`
/// (dart-lang/sdk#47177).
/// (dart-lang/sdk#28617).
bool _useNative(String os, String arch) {
_verifyOsAndArch(os, arch);
if (!_isCurrentOsAndArch(os, arch)) return false;
if (arch == "ia32") return false;

return true;
return _isCurrentOsAndArch(os, arch);
}

/// List of strings containing the os and arch for the current Dart SDK.
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: cli_pkg
version: 2.7.0
version: 2.7.1-dev
description: Grinder tasks for releasing Dart CLI packages.
homepage: https://github.com/google/dart_cli_pkg

Expand Down

0 comments on commit 3c5a2cc

Please sign in to comment.