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

Commit b20e63e

Browse files
committed
Remove debug code
1 parent 7fa7c15 commit b20e63e

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

crates/libm-cdylib/src/macros.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ macro_rules! export {
5151
);
5252

5353
let target_dir = target_dir();
54-
eprintln!("target dir: {}", target_dir.display());
5554
let src_path = target_dir.clone().join(format!("{}.c", stringify!($id)));
5655
let bin_path = target_dir.clone().join(format!("{}", stringify!($id)));
5756
write_to_file(&src_path, &ctest);

crates/libm-cdylib/src/test_utils.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,9 @@ pub(crate) fn compile_file(src_path: &Path, bin_path: &Path) {
4848

4949
// Link our libm
5050
let lib_path = cdylib_dir();
51-
{
52-
let mut ls = process::Command::new("ls");
53-
ls.arg(lib_path.clone());
54-
let output = ls.output().unwrap();
55-
let output = String::from_utf8(output.stdout).unwrap();
56-
println!("ls\n{}]n", output);
57-
}
5851
cmd.arg(format!("-L{}", lib_path.display()));
5952
cmd.arg("-llibm");
6053

61-
eprintln!("compile cmd: {:?}", cmd);
62-
6354
handle_err(
6455
&format!("compile file: {}", src_path.display()),
6556
&cmd.output().unwrap(),
@@ -98,8 +89,7 @@ where
9889

9990
pub(crate) fn handle_err(step: &str, output: &process::Output) {
10091
if !output.status.success() {
101-
eprintln!("{}", format_output(step, output));
102-
panic!();
92+
panic!("{}", format_output(step, output));
10393
}
10494
}
10595

0 commit comments

Comments
 (0)