mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-27 17:13:20 +01:00
Guess exe name from first object name if none specified.
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user