# HG changeset patch # User Robert Clipsham # Date 1261967021 0 # Node ID a60e7d1ce3ee8d40491aac2581895b8950599379 # Parent 20799faa301d700747322dd5fdc56791581887ab Folded in a patch by Troy Straszheim to better report errors with -run. diff -r 20799faa301d -r a60e7d1ce3ee gen/linker.cpp --- a/gen/linker.cpp Sun Dec 20 13:58:08 2009 +0000 +++ b/gen/linker.cpp Mon Dec 28 02:23:41 2009 +0000 @@ -387,6 +387,12 @@ // 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");