Skip to content

Commit

Permalink
Small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mosuem committed Jul 19, 2024
1 parent 7078488 commit be86b28
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 21 deletions.
13 changes: 0 additions & 13 deletions pkgs/native_assets_cli/lib/src/api/builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import 'package:logging/logging.dart';

import '../../native_assets_cli.dart';
import 'build_config.dart';
import 'build_output.dart';
import 'linker.dart';
Expand Down Expand Up @@ -76,15 +75,3 @@ abstract interface class Builder {
required Logger? logger,
});
}

abstract interface class Linker {
/// Runs this link.
///
/// Reads the config from [config], streams output to [output], and streams
/// logs to [logger].
Future<void> run({
required LinkConfig config,
required LinkOutput output,
required Logger? logger,
});
}
18 changes: 10 additions & 8 deletions pkgs/native_toolchain_c/test/clinker/objects_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,16 @@ Future<void> main() async {
cCompiler: cCompilerConfig,
assets: []);
await CLinker.library(
name: name,
assetName: 'testassetname',
linkerOptions: LinkerOptions.manual(gcSections: false),
sources: [
'test/clinker/testfiles/linker/test1.o',
'test/clinker/testfiles/linker/test2.o',
].map((e) => packageUri.resolve(e).toFilePath()).toList())
.run(
name: name,
assetName: 'testassetname',
linkerOptions: LinkerOptions.manual(gcSections: false),
sources: [
'test/clinker/testfiles/linker/test1.o',
'test/clinker/testfiles/linker/test2.o',
]
.map((objectFile) => packageUri.resolve(objectFile).toFilePath())
.toList(),
).run(
config: linkConfig,
output: linkOutput,
logger: logger,
Expand Down

0 comments on commit be86b28

Please sign in to comment.