Mercurial > projects > ldc
comparison dmd/mars.c @ 700:716684a0d63f
Updated rebuild profile for .o output as default, compiler needs to be fixed still.
Fixed segfault with ' ldc foo.o -offoo '.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Mon, 13 Oct 2008 18:19:43 +0200 |
parents | ed9a9e6dd1cc |
children | fd5665da3a27 |
comparison
equal
deleted
inserted
replaced
699:ed9a9e6dd1cc | 700:716684a0d63f |
---|---|
464 if (global.params.output_o == 1) | 464 if (global.params.output_o == 1) |
465 global.params.output_o = 0; | 465 global.params.output_o = 0; |
466 | 466 |
467 // determine output based on ext | 467 // determine output based on ext |
468 ext = FileName::ext(global.params.objname); | 468 ext = FileName::ext(global.params.objname); |
469 if (strcmp(ext, global.ll_ext) == 0) { | 469 if (!ext) { |
470 global.params.link = 1; | |
471 global.params.output_o = 1; | |
472 } else if (strcmp(ext, global.ll_ext) == 0) { | |
470 global.params.output_ll = 1; | 473 global.params.output_ll = 1; |
471 global.params.link = 0; | 474 global.params.link = 0; |
472 } else if (strcmp(ext, global.bc_ext) == 0) { | 475 } else if (strcmp(ext, global.bc_ext) == 0) { |
473 global.params.output_bc = 1; | 476 global.params.output_bc = 1; |
474 global.params.link = 0; | 477 global.params.link = 0; |