diff dmd/parse.c @ 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 a26b0c5d5942
children 041c1596d217
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
 	{