changeset 1601:49722e6e6e05

Automated merge with http://hg.dsource.org/projects/ldc
author Robert Clipsham <robert@octarineparrot.com>
date Mon, 28 Dec 2009 02:23:54 +0000
parents 0a4be54234d6 (current diff) a60e7d1ce3ee (diff)
children a413ae7329bf
files
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gen/linker.cpp	Wed Dec 23 22:49:20 2009 -0700
+++ b/gen/linker.cpp	Mon Dec 28 02:23:54 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");