mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-28 22:59:03 +01:00
Removed redundant global.params.os field.
I hope I have untangled the checks for "native" Windows (Triple::Win32) vs. Windows/MinGW/Cygwin (Triple::isOSWindows) correctly. MinGW needs some default libraries as well, has to be fixed later.
This commit is contained in:
11
dmd/parse.c
11
dmd/parse.c
@@ -671,11 +671,18 @@ enum LINK Parser::parseLinkage()
|
||||
}
|
||||
else if (id == Id::System)
|
||||
{
|
||||
// LDC we configure target at runtime
|
||||
if (global.params.os == OSWindows)
|
||||
#if IN_LLVM
|
||||
if (global.params.targetTriple.isOSWindows())
|
||||
link = LINKwindows;
|
||||
else
|
||||
link = LINKc;
|
||||
#else
|
||||
#if _WIN32
|
||||
link = LINKwindows;
|
||||
#else
|
||||
link = LINKc;
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user