mingw uses ar not lib for creating static libraries.

This commit is contained in:
kai 2014-12-08 08:18:31 +01:00
parent 4ac65e6f5d
commit c2b6b87d06

View file

@ -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());