Skip to content

Commit 48c179d

Browse files
author
Ellen Arteca
committed
cfg for linux, and remove test SO file
1 parent e7a6466 commit 48c179d

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ tex/*/out
99
perf.data
1010
perf.data.old
1111
flamegraph.svg
12-
tests/external_C/libtestlib.so
12+
tests/extern-so/libtestlib.so

src/shims/ffi_support.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
196196
!= lib_path.to_str().unwrap()
197197
{
198198
return Ok(false);
199-
}
199+
}
200200
}
201201
}
202202

tests/compiletest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ fn run_tests(mode: Mode, path: &str, target: Option<String>) -> Result<()> {
4141
}
4242

4343
// If we're on linux, then build the shared object file for testing external C function calls.
44-
if env::consts::OS == "linux" {
44+
if cfg!(target_os = "linux") {
4545
let cc = option_env!("CC").unwrap_or("cc");
4646
Command::new(cc)
4747
.args([

tests/extern-so/libtestlib.so

-15.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)