Skip to content

Commit fecafdb

Browse files
fw-immunantkkysen
andcommitted
transpile: tests: snapshots: warn when skipping compiling
Co-authored-by: Khyber Sen <[email protected]>
1 parent 1aa0c03 commit fecafdb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

c2rust-transpile/tests/snapshots.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ fn transpile(platform: Option<&str>, c_path: &Path) {
9898
// the appropriate --extern libc=/path/to/liblibc-XXXXXXXXXXXXXXXX.rlib to pass. Skip for now,
9999
// as we've already compared the literal text.
100100
if rs.contains("libc::") {
101+
eprintln!(
102+
"warning: skipping compiling {} with rustc since it depends on libc",
103+
rs_path.display()
104+
);
101105
return;
102106
}
103107

0 commit comments

Comments
 (0)