mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
Added error when invoking gcc fails
This commit is contained in:
@@ -466,6 +466,11 @@ void assemble(const llvm::sys::Path& asmpath, const llvm::sys::Path& objpath, ch
|
||||
std::string ErrMsg;
|
||||
int R = sys::Program::ExecuteAndWait(
|
||||
gcc, &Args[0], (const char**)clean_env, 0, 0, 0, &ErrMsg);
|
||||
if (R)
|
||||
{
|
||||
error("failed to invoke gcc");
|
||||
fatal();
|
||||
}
|
||||
delete [] clean_env;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user