view ldc-posix-tango @ 1064:f0b6549055ab

Make LDC work with LLVM trunk (s/LinkOnceLinkage/LinkOnceOdrLinkage/) Also moved the #defines for linkage types into a separate header instead of mars.h so we can #include revisions.h without having to rebuild the entire frontend every time we update. (I'm using revisions.h to get the LLVM revision for use in preprocessor conditionals. It should work with LLVM release 2.5, old trunk and new trunk)
author Frits van Bommel <fvbommel wxs.nl>
date Sun, 08 Mar 2009 16:13:10 +0100
parents cc6489f32519
children 8403fec8c34c
line wrap: on
line source

ignore=object

compiler=ldc
inifile=ldc.conf

exeext=
objext=o


version=LLVM
version=LDC
noversion=DigitalMars
noversion=GNU
testversion=linux
testversion=darwin
testversion=freebsd
testversion=Unix
testversion=Posix
testversion=Windows
testversion=Win32
testversion=Win64
testversion=mingw32
testversion=X86
testversion=PPC
testversion=X86_64
testversion=PPC64
testversion=D_InlineAsm
testversion=D_InlineAsm_X86
testversion=D_InlineAsm_PPC
testversion=D_InlineAsm_X86_64
testversion=D_InlineAsm_PPC64
testversion=LLVM_InlineAsm_X86
testversion=LittleEndian
testversion=BigEndian
testversion=LLVM64
testversion=PIC
testversion=Tango


[compile]
oneatatime=yes
cmd=ldmd -c $i

flag=$i
incdir=-I$i
libdir=-L-L$i
optimize=-O3
version=-version=$i


[link]
oneatatime=yes
cmd=ldc $i -of$o

libdir=-L-L$i
lib=-L-l$i
flag=-L$i


[liblink]
safe=yes
oneatatime=yes
cmd=ar rc $o $i

libdir=
lib=
flag=


[postliblink]
cmd=ranlib $i


[shliblink]
shlibs=no

[dyliblink]
dylibs=no