mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-08 03:46:02 +03:00
Fix (part of) issue #1061.
An attempt to fix a test case results in breaking compiling with dub. This PR reverts part of the former fix. The changed test case is missing.
This commit is contained in:
parent
3addf84423
commit
2a206453c0
1 changed files with 5 additions and 2 deletions
|
@ -453,8 +453,11 @@ void createStaticLibrary()
|
|||
else
|
||||
libName = "a.out";
|
||||
}
|
||||
if (!FileName::absolute(libName.c_str()))
|
||||
libName = FileName::combine(global.params.objdir, libName.c_str());
|
||||
// KN: The following lines were added to fix a test case failure (runnable/test13774.sh).
|
||||
// Root cause is that dmd handles it in this why.
|
||||
// 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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue