changeset 701:855e0ef78fa2

Guess exe name from first object name if none specified.
author Christian Kamm <kamm incasoftware de>
date Mon, 13 Oct 2008 19:02:03 +0200
parents 716684a0d63f
children 353d9d184091
files gen/linker.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gen/linker.cpp	Mon Oct 13 18:19:43 2008 +0200
+++ b/gen/linker.cpp	Mon Oct 13 19:02:03 2008 +0200
@@ -235,6 +235,8 @@
         // try root module name
         if (Module::rootModule)
             exestr = Module::rootModule->toChars();
+        else if (global.params.objfiles->dim)
+            exestr = FileName::removeExt((char*)global.params.objfiles->data[0]);
         else
             exestr = "a.out";
     }