Skip to content

Commit

Permalink
[native_toolchain_c] Bump deps (#148)
Browse files Browse the repository at this point in the history
native_assets_builder's tests use native_toolchain_c, so we need to roll this first.

* #142
  • Loading branch information
dcharkes authored Oct 3, 2023
1 parent ec0a7c9 commit c9bdc9a
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 2 deletions.
4 changes: 4 additions & 0 deletions pkgs/native_toolchain_c/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.3.0

- Bump `package:native_assets_cli` to 0.3.0.

## 0.2.5

- Explicitly tell linker to create position dependent or position independent executable
Expand Down
4 changes: 2 additions & 2 deletions 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.2.5
version: 0.3.0
repository: https://github.com/dart-lang/native/tree/main/pkgs/native_toolchain_c

topics:
Expand All @@ -19,7 +19,7 @@ dependencies:
glob: ^2.1.1
logging: ^1.1.1
meta: ^1.9.1
native_assets_cli: ^0.2.0
native_assets_cli: ^0.3.0
pub_semver: ^2.1.3

dev_dependencies:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ void main() {

final buildConfig = BuildConfig(
outDir: tempUri,
packageName: name,
packageRoot: tempUri,
targetArchitecture: Architecture.current,
targetOs: OS.current,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ Future<Uri> buildLib(

final buildConfig = BuildConfig(
outDir: tempUri,
packageName: name,
packageRoot: tempUri,
targetArchitecture: target.architecture,
targetOs: target.os,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ void main() {
packageUri.resolve('test/cbuilder/testfiles/add/src/add.c');
final buildConfig = BuildConfig(
outDir: tempUri,
packageName: name,
packageRoot: tempUri,
targetArchitecture: target.architecture,
targetOs: target.os,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ void main() {

final buildConfig = BuildConfig(
outDir: tempUri,
packageName: name,
packageRoot: tempUri,
targetArchitecture: target.architecture,
targetOs: target.os,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ void main() {

final buildConfig = BuildConfig(
outDir: tempUri,
packageName: name,
packageRoot: tempUri,
targetArchitecture: target.architecture,
targetOs: target.os,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ void main() {

final buildConfig = BuildConfig(
outDir: tempUri,
packageName: name,
packageRoot: tempUri,
targetOs: target.os,
targetArchitecture: target.architecture,
Expand Down
9 changes: 9 additions & 0 deletions pkgs/native_toolchain_c/test/cbuilder/cbuilder_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ void main() {

final buildConfig = BuildConfig(
outDir: tempUri,
packageName: name,
packageRoot: tempUri,
targetArchitecture: Architecture.current,
targetOs: OS.current,
Expand Down Expand Up @@ -116,12 +117,14 @@ void main() {
final buildConfig = dryRun
? BuildConfig.dryRun(
outDir: tempUri,
packageName: name,
packageRoot: tempUri,
targetOs: OS.current,
linkModePreference: LinkModePreference.dynamic,
)
: BuildConfig(
outDir: tempUri,
packageName: name,
packageRoot: tempUri,
targetArchitecture: Architecture.current,
targetOs: OS.current,
Expand Down Expand Up @@ -213,6 +216,7 @@ void main() {

final buildConfig = BuildConfig(
outDir: tempUri,
packageName: name,
packageRoot: tempUri,
targetArchitecture: Architecture.current,
targetOs: OS.current,
Expand Down Expand Up @@ -271,6 +275,7 @@ void main() {

final buildConfig = BuildConfig(
outDir: tempUri,
packageName: name,
packageRoot: tempUri,
targetArchitecture: Architecture.current,
targetOs: OS.current,
Expand Down Expand Up @@ -315,6 +320,7 @@ void main() {

final buildConfig = BuildConfig(
outDir: tempUri,
packageName: name,
packageRoot: tempUri,
targetArchitecture: Architecture.current,
targetOs: OS.current,
Expand Down Expand Up @@ -373,6 +379,7 @@ void main() {
final buildConfig = BuildConfig(
buildMode: BuildMode.release,
outDir: tempUri,
packageName: name,
packageRoot: tempUri,
targetArchitecture: Architecture.current,
targetOs: OS.current,
Expand Down Expand Up @@ -437,6 +444,7 @@ void main() {
final buildConfig = BuildConfig(
buildMode: BuildMode.release,
outDir: tempUri,
packageName: name,
packageRoot: tempUri,
targetArchitecture: Architecture.current,
targetOs: OS.current,
Expand Down Expand Up @@ -506,6 +514,7 @@ Future<void> testDefines({

final buildConfig = BuildConfig(
outDir: tempUri,
packageName: name,
packageRoot: tempUri,
targetArchitecture: Architecture.current,
targetOs: OS.current,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ void main() {
].firstOrNull?.uri;
final buildConfig = BuildConfig(
outDir: tempUri,
packageName: 'dummy',
packageRoot: tempUri,
targetArchitecture: Architecture.current,
targetOs: OS.current,
Expand All @@ -65,6 +66,7 @@ void main() {
final tempUri = await tempDirForTest();
final buildConfig = BuildConfig(
outDir: tempUri,
packageName: 'dummy',
packageRoot: tempUri,
targetArchitecture: Architecture.arm64,
targetOs: OS.windows,
Expand Down

0 comments on commit c9bdc9a

Please sign in to comment.