# HG changeset patch # User Tomas Lindquist Olsen # Date 1224783481 -7200 # Node ID 51797efb6975c371d59859614bc3817e8cea721b # Parent e177ae483f8e412afcd47444d2fa1c9720a53430 Make extern(System) configure the calling convention on LDC runtime, not when building LDC. diff -r e177ae483f8e -r 51797efb6975 dmd/parse.c --- a/dmd/parse.c Thu Oct 23 00:34:46 2008 +0200 +++ b/dmd/parse.c Thu Oct 23 19:38:01 2008 +0200 @@ -597,11 +597,11 @@ } 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 {