|
|
|
|
|
|
|
|
if (!compile_res.okay()) { |
|
|
if (!compile_res.okay()) { |
|
|
spdlog::error("Compilation failed: {}", source.path.string()); |
|
|
spdlog::error("Compilation failed: {}", source.path.string()); |
|
|
spdlog::error("Subcommand FAILED: {}\n{}", quote_command(cmd), compile_res.output); |
|
|
spdlog::error("Subcommand FAILED: {}\n{}", quote_command(cmd), compile_res.output); |
|
|
throw compile_failure(fmt::format("Compilation failed for {}.", source.path.string())); |
|
|
|
|
|
|
|
|
throw compile_failure(fmt::format("Compilation failed for {}", source.path.string())); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// MSVC prints the filename of the source file. Dunno why, but they do. |
|
|
// MSVC prints the filename of the source file. Dunno why, but they do. |