Mercurial > projects > ldc
comparison dmd/link.c @ 160:b77664331d06 trunk
[svn r176] Fixed a bug with class constructors.
author | lindquist |
---|---|
date | Sun, 04 May 2008 04:35:27 +0200 |
parents | 5acec6b2eef8 |
children | 21f85bac0b1a |
comparison
equal
deleted
inserted
replaced
159:5acec6b2eef8 | 160:b77664331d06 |
---|---|
30 | 30 |
31 #include "mars.h" | 31 #include "mars.h" |
32 | 32 |
33 #include "mem.h" | 33 #include "mem.h" |
34 | 34 |
35 #include "gen/logger.h" | |
36 | |
35 int executecmd(char *cmd, char *args, int useenv); | 37 int executecmd(char *cmd, char *args, int useenv); |
36 int executearg0(char *cmd, char *args); | 38 int executearg0(char *cmd, char *args); |
37 | 39 |
38 /***************************** | 40 /***************************** |
39 * Run the linker. Return status of execution. | 41 * Run the linker. Return status of execution. |
40 */ | 42 */ |
41 | 43 |
42 int runLINK() | 44 int runLINK() |
43 { | 45 { |
46 Logger::println("*** Linking executable ***"); | |
47 | |
44 #if _WIN32 | 48 #if _WIN32 |
45 assert(0 && "linking not done for win32"); | 49 assert(0 && "linking not done for win32"); |
46 | 50 |
47 char *p; | 51 char *p; |
48 int i; | 52 int i; |
319 status=WEXITSTATUS(status); | 323 status=WEXITSTATUS(status); |
320 if (status) | 324 if (status) |
321 printf("--- errorlevel %d\n", status); | 325 printf("--- errorlevel %d\n", status); |
322 return status; | 326 return status; |
323 #else | 327 #else |
324 printf ("Linking is not yet supported for this version of LLVMDMD.\n"); | 328 printf ("Linking is not yet supported for this version of LLVMDC.\n"); |
325 return -1; | 329 return -1; |
326 #endif | 330 #endif |
327 } | 331 } |
328 | 332 |
329 /********************************** | 333 /********************************** |