mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-15 12:23:13 +01:00
Fix -lib with fully specified output name and '-c'.
The whole output path handling code is in dire need of a cleanup/rework.
This commit is contained in:
@@ -380,7 +380,7 @@ int main(int argc, char** argv)
|
||||
// LDC output determination
|
||||
|
||||
// if we don't link, autodetect target from extension
|
||||
if(!global.params.link && global.params.objname) {
|
||||
if(!global.params.link && !createStaticLib && global.params.objname) {
|
||||
ext = FileName::ext(global.params.objname);
|
||||
bool autofound = false;
|
||||
if (!ext) {
|
||||
|
||||
Reference in New Issue
Block a user