Skip to content

Commit d1483ae

Browse files
committed
fix
1 parent a8ce9ee commit d1483ae

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pkgs/native_toolchain_c/test/clinker/rust_test.dart

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ Future<void> main() async {
2929
staticLib.toFilePath(),
3030
]);
3131
rustToolchainInstalled = processResult.exitCode == 0;
32+
if (rustToolchainInstalled) {
33+
await File.fromUri(
34+
staticLib,
35+
).copy(tempUri.resolve('libtest.a').toFilePath());
36+
}
3237
final linkInputBuilder = LinkInputBuilder()
3338
..setupShared(
3439
packageName: 'testpackage',
@@ -46,10 +51,6 @@ Future<void> main() async {
4651
);
4752

4853
linkInput = linkInputBuilder.build();
49-
50-
await File.fromUri(
51-
staticLib,
52-
).copy(tempUri.resolve('libtest.a').toFilePath());
5354
});
5455
test('link rust binary with script treeshakes', () async {
5556
if (!rustToolchainInstalled) {

0 commit comments

Comments
 (0)