mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-26 01:23:13 +01:00
Folded in a patch by Troy Straszheim to better report errors with -run.
This commit is contained in:
@@ -387,6 +387,12 @@ int runExecutable()
|
||||
// try to call linker!!!
|
||||
std::string errstr;
|
||||
int status = llvm::sys::Program::ExecuteAndWait(gExePath, &args[0], NULL, NULL, 0,0, &errstr);
|
||||
if (status < 0)
|
||||
{
|
||||
error("program received signal %d (%s)", -status, strsignal(-status));
|
||||
return -status;
|
||||
}
|
||||
|
||||
if (!errstr.empty())
|
||||
{
|
||||
error("failed to execute program");
|
||||
|
||||
Reference in New Issue
Block a user