From 4b82b7a7299b5b77a45155af4093c0b1f21f32d8 Mon Sep 17 00:00:00 2001 From: Tomas Lindquist Olsen Date: Thu, 23 Oct 2008 19:38:01 +0200 Subject: [PATCH] Make extern(System) configure the calling convention on LDC runtime, not when building LDC. --- dmd/parse.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dmd/parse.c b/dmd/parse.c index 1d1063e9..f2f7f0e7 100644 --- a/dmd/parse.c +++ b/dmd/parse.c @@ -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 {