mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-02 08:01:11 +03:00
mingw uses ar not lib for creating static libraries.
This commit is contained in:
parent
4ac65e6f5d
commit
c2b6b87d06
1 changed files with 4 additions and 0 deletions
|
@ -396,7 +396,11 @@ void createStaticLibrary()
|
|||
{
|
||||
Logger::println("*** Creating static library ***");
|
||||
|
||||
#if LDC_LLVM_VER >= 305
|
||||
const bool isTargetWindows = global.params.targetTriple.isWindowsMSVCEnvironment();
|
||||
#else
|
||||
const bool isTargetWindows = global.params.targetTriple.getOS() == llvm::Triple::Win32;
|
||||
#endif
|
||||
|
||||
// find archiver
|
||||
std::string tool(isTargetWindows ? getLib() : getArchiver());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue