Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 76daeeb

Browse files
committed
fixup
1 parent 934a6d4 commit 76daeeb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

crates/libm-cdylib/src/macros.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ macro_rules! export {
2525
fn [<$id _link_test>]() {
2626
use crate::test_utils::*;
2727

28+
// This re-compiles the dynamic library:
29+
compile_cdylib();
30+
2831
// Generate a small C program that calls the C API from
2932
// <math.h>. This program prints the result into an appropriate
3033
// type, that is then printed to stdout.
@@ -55,10 +58,9 @@ macro_rules! export {
5558

5659
// We now compile the C program into an executable, make sure
5760
// that the libm-cdylib has been generated (and generate it if
58-
// it isn't), and then we run the program, override the libm
59-
// dynamically, and verify the result.
61+
// it isn't), and then we run the program, override the libm,
62+
// and verify the result.
6063
compile_file(&src_path, &bin_path);
61-
compile_cdylib();
6264
check(&bin_path, $test_ret as $ret_ty)
6365
}
6466
}

0 commit comments

Comments
 (0)