Make extern(System) configure the calling convention on LDC runtime, not when building LDC.

This commit is contained in:
Tomas Lindquist Olsen
2008-10-23 19:38:01 +02:00
parent f71b7ac284
commit 4b82b7a729

View File

@@ -597,11 +597,11 @@ enum LINK Parser::parseLinkage()
}
else if (id == Id::System)
{
#if _WIN32
link = LINKwindows;
#else
link = LINKc;
#endif
// LDC we configure target at runtime
if (global.params.os == OSWindows)
link = LINKwindows;
else
link = LINKc;
}
else
{