Skip to content

Commit

Permalink
[native_toolchain_c] Output an Asset.file in dry run (#1050)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcharkes authored Mar 22, 2024
1 parent 25ba300 commit 335ea7c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions pkgs/native_toolchain_c/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`.
Expand Down
2 changes: 1 addition & 1 deletion pkgs/native_toolchain_c/lib/src/cbuilder/cbuilder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pkgs/native_toolchain_c/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 335ea7c

Please sign in to comment.