()
| 904 | } |
| 905 | |
| 906 | fn check_clang() -> Result<()> { |
| 907 | let output = Command::new("clang++") |
| 908 | .arg("-v") |
| 909 | .output() |
| 910 | .expect("failed to execute the clang check process."); |
| 911 | if !output.status.success() { |
| 912 | eyre::bail!("clang does not exist in your environment!"); |
| 913 | } |
| 914 | Ok(()) |
| 915 | } |
| 916 | |
| 917 | /// if the exit code represent program executed normally. |
| 918 | fn is_exit_normally(code: Option<i32>) -> bool { |