Mercurial > projects > ldc
changeset 721:51797efb6975
Make extern(System) configure the calling convention on LDC runtime, not when building LDC.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Thu, 23 Oct 2008 19:38:01 +0200 |
parents | e177ae483f8e |
children | bd56056a581f |
files | dmd/parse.c |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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 {