| spdlog::info("Linking test executable: {}", spec.output.string()); | spdlog::info("Linking test executable: {}", spec.output.string()); | ||||
| fs::create_directories(spec.output.parent_path()); | fs::create_directories(spec.output.parent_path()); | ||||
| auto proc_res = run_proc(link_command); | auto proc_res = run_proc(link_command); | ||||
| if (proc_res.retc != 0) { | |||||
| if (!proc_res.okay()) { | |||||
| throw compile_failure( | throw compile_failure( | ||||
| fmt::format("Failed to link test executable '{}'. Link command [{}] returned {}:\n{}", | fmt::format("Failed to link test executable '{}'. Link command [{}] returned {}:\n{}", | ||||
| spec.output.string(), | spec.output.string(), |