Guess exe name from first object name if none specified.

This commit is contained in:
Christian Kamm
2008-10-13 19:02:03 +02:00
parent 1757e2e1de
commit 881a141a1a

View File

@@ -235,6 +235,8 @@ int linkObjToExecutable(const char* argv0)
// 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";
}