mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-02 08:01:11 +03:00
Use gcc as linker on MingW
This commit is contained in:
parent
aa35307f54
commit
04f7eadaca
1 changed files with 4 additions and 0 deletions
|
@ -379,7 +379,11 @@ static int linkObjToBinaryWin(bool sharedLib)
|
|||
int linkObjToBinary(bool sharedLib)
|
||||
{
|
||||
int status;
|
||||
#if LDC_LLVM_VER >= 305
|
||||
if (global.params.targetTriple.isWindowsMSVCEnvironment())
|
||||
#else
|
||||
if (global.params.targetTriple.getOS() == llvm::Triple::Win32)
|
||||
#endif
|
||||
status = linkObjToBinaryWin(sharedLib);
|
||||
else
|
||||
status = linkObjToBinaryGcc(sharedLib);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue