From 335ea7c6af72aa6a8252b3286d9c97362cd0ed1b Mon Sep 17 00:00:00 2001 From: Daco Harkes Date: Fri, 22 Mar 2024 16:33:10 +0100 Subject: [PATCH] [native_toolchain_c] Output an `Asset.file` in dry run (#1050) --- pkgs/native_toolchain_c/CHANGELOG.md | 5 +++++ pkgs/native_toolchain_c/lib/src/cbuilder/cbuilder.dart | 2 +- pkgs/native_toolchain_c/pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/native_toolchain_c/CHANGELOG.md b/pkgs/native_toolchain_c/CHANGELOG.md index c8d2c84c4..34ec0f4fc 100644 --- a/pkgs/native_toolchain_c/CHANGELOG.md +++ b/pkgs/native_toolchain_c/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.4.1 + +- Output an `Asset.file` in dry run. + https://github.com/dart-lang/native/issues/1049 + ## 0.4.0 - **Breaking change** Completely rewritten API in `native_assets_cli`. diff --git a/pkgs/native_toolchain_c/lib/src/cbuilder/cbuilder.dart b/pkgs/native_toolchain_c/lib/src/cbuilder/cbuilder.dart index 6cb0592bc..9e0683b1b 100644 --- a/pkgs/native_toolchain_c/lib/src/cbuilder/cbuilder.dart +++ b/pkgs/native_toolchain_c/lib/src/cbuilder/cbuilder.dart @@ -251,7 +251,7 @@ class CBuilder implements Builder { NativeCodeAsset( package: buildConfig.packageName, name: assetName!, - file: buildConfig.dryRun ? null : libUri, + file: libUri, linkMode: linkMode, os: buildConfig.targetOS, architecture: diff --git a/pkgs/native_toolchain_c/pubspec.yaml b/pkgs/native_toolchain_c/pubspec.yaml index a5af4f320..c25e84733 100644 --- a/pkgs/native_toolchain_c/pubspec.yaml +++ b/pkgs/native_toolchain_c/pubspec.yaml @@ -1,7 +1,7 @@ name: native_toolchain_c description: >- A library to invoke the native C compiler installed on the host machine. -version: 0.4.0 +version: 0.4.1 repository: https://github.com/dart-lang/native/tree/main/pkgs/native_toolchain_c topics: