mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 10:57:35 +03:00
Do not append extension if library filee name already has one.
This is the same behavior as dmd. Fixes issue #1084.
This commit is contained in:
parent
ab2e8e3646
commit
c3a79cb867
1 changed files with 2 additions and 3 deletions
|
@ -458,9 +458,8 @@ void createStaticLibrary()
|
|||
// As a side effect this change broke compiling with dub.
|
||||
// if (!FileName::absolute(libName.c_str()))
|
||||
// libName = FileName::combine(global.params.objdir, libName.c_str());
|
||||
std::string libExt = std::string(".") + global.lib_ext;
|
||||
if (!endsWith(libName, libExt))
|
||||
libName.append(libExt);
|
||||
if (llvm::sys::path::extension(libName).empty())
|
||||
libName.append(std::string(".") + global.lib_ext);
|
||||
if (isTargetWindows)
|
||||
args.push_back("/OUT:" + libName);
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue