Skip to content

Commit 2a2230c

Browse files
committed
edits
1 parent 51e932f commit 2a2230c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/lit/lit/formats/Cpp2RustTest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,9 @@ def build_rust(self):
220220
f"dependency={cc2rs_dir / 'deps'}",
221221
"--extern",
222222
f"libcc2rs={cc2rs_dir / 'liblibcc2rs.rlib'}",
223+
"--extern",
224+
f"libc={libc_rlib}"
223225
]
224-
if self.model == "unsafe":
225-
cmd += ["--extern", f"libc={libc_rlib}"]
226226
_, err, returncode = lit.util.executeCommand(cmd, str(self.tmp_dir))
227227
if exp.should_not_compile:
228228
if returncode != 0:

0 commit comments

Comments
 (0)