(path: &str)
| 210 | } |
| 211 | |
| 212 | pub fn rustc(path: &str) { |
| 213 | let src = format!("{path}.rs"); |
| 214 | let obj = format!("{path}.o"); |
| 215 | let result = rustc_cmd(&src, &obj) |
| 216 | .spawn() |
| 217 | .unwrap() |
| 218 | .wait_with_output() |
| 219 | .unwrap(); |
| 220 | if result.status.code().unwrap() != 0 { |
| 221 | panic!("Failed to compile {src}"); |
| 222 | } |
| 223 | } |
| 224 | |
| 225 | pub fn rustc_optimize(path: &str) { |
| 226 | let src = format!("{path}.rs"); |
no test coverage detected