Updated rebuild profile for .o output as default, compiler needs to be fixed still.

Fixed segfault with ' ldc foo.o -offoo '.
This commit is contained in:
Tomas Lindquist Olsen
2008-10-13 18:19:43 +02:00
parent f15b115ee9
commit 1757e2e1de
2 changed files with 7 additions and 4 deletions
+4 -1
View File
@@ -466,7 +466,10 @@ int main(int argc, char *argv[], char** envp)
// determine output based on ext
ext = FileName::ext(global.params.objname);
if (strcmp(ext, global.ll_ext) == 0) {
if (!ext) {
global.params.link = 1;
global.params.output_o = 1;
} else if (strcmp(ext, global.ll_ext) == 0) {
global.params.output_ll = 1;
global.params.link = 0;
} else if (strcmp(ext, global.bc_ext) == 0) {