mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-09-20 12:20:19 +02:00
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:
+4
-1
@@ -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) {
|
||||
|
||||
@@ -4,7 +4,7 @@ compiler=ldc
|
||||
inifile=ldc.conf
|
||||
|
||||
exeext=
|
||||
objext=bc
|
||||
objext=o
|
||||
|
||||
|
||||
version=LLVM
|
||||
@@ -58,7 +58,7 @@ flag=-L$i
|
||||
[liblink]
|
||||
safe=yes
|
||||
oneatatime=yes
|
||||
cmd=llvm-ar rsc $o $i
|
||||
cmd=ar rc $o $i
|
||||
|
||||
libdir=
|
||||
lib=
|
||||
@@ -66,7 +66,7 @@ flag=
|
||||
|
||||
|
||||
[postliblink]
|
||||
#cmd=ranlib $i
|
||||
cmd=ranlib $i
|
||||
|
||||
|
||||
[shliblink]
|
||||
|
||||
Reference in New Issue
Block a user