Skip to content

Commit

Permalink
[native_toolchain_c] Pass in archiver from environment in test (#1456)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcharkes authored Aug 26, 2024
1 parent 82c3dc5 commit f73ffc9
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions pkgs/native_toolchain_c/test/clinker/objects_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,22 @@ Future<void> main() async {
final uri = await buildTestArchive(tempUri, os, architecture);

final linkConfig = LinkConfig.build(
outputDirectory: tempUri,
packageName: 'testpackage',
packageRoot: tempUri,
targetArchitecture: architecture,
targetOS: os,
buildMode: BuildMode.debug,
linkModePreference: LinkModePreference.dynamic,
assets: []);
outputDirectory: tempUri,
packageName: 'testpackage',
packageRoot: tempUri,
targetArchitecture: architecture,
targetOS: os,
buildMode: BuildMode.debug,
linkModePreference: LinkModePreference.dynamic,
assets: [],
cCompiler: CCompilerConfig(
compiler: cc,
archiver: ar,
linker: ld,
envScript: envScript,
envScriptArgs: envScriptArgs,
),
);
await CLinker.library(
name: name,
assetName: '',
Expand Down

0 comments on commit f73ffc9

Please sign in to comment.