changeset 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 855e0ef78fa2
files dmd/mars.c ldc-tango
diffstat 2 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/dmd/mars.c	Mon Oct 13 17:28:39 2008 +0200
+++ b/dmd/mars.c	Mon Oct 13 18:19:43 2008 +0200
@@ -466,7 +466,10 @@
 
 			// 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) {
--- a/ldc-tango	Mon Oct 13 17:28:39 2008 +0200
+++ b/ldc-tango	Mon Oct 13 18:19:43 2008 +0200
@@ -4,7 +4,7 @@
 inifile=ldc.conf
 
 exeext=
-objext=bc
+objext=o
 
 
 version=LLVM
@@ -58,7 +58,7 @@
 [liblink]
 safe=yes
 oneatatime=yes
-cmd=llvm-ar rsc $o $i
+cmd=ar rc $o $i
 
 libdir=
 lib=
@@ -66,7 +66,7 @@
 
 
 [postliblink]
-#cmd=ranlib $i
+cmd=ranlib $i
 
 
 [shliblink]