Mercurial > projects > ldc
view runtime/build-sharedlibs.sh @ 1346:6f4154b318ef
Remove an old workaround that was kept around for ABI-compatibility on x86-64
between different LLVM versions.
This means LLVM r67588 is required if you want to compile for x86-64, otherwise
the backend will assert when you try to return e.g. struct { int i; char c; }
from a function. (In particular, this is no longer compatible with LLVM 2.5)
It also means that any code returning small structs on x86-64 will probably
need to be recompiled in order to be linkable to code compiled with this change.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Tue, 12 May 2009 15:50:48 +0200 |
parents | 6aaa3d3c1183 |
children |
line wrap: on
line source
#!/bin/bash # I'm no good bash scripter ... # copy imports mkdir -p ../tango/ldc cp internal/ldc/bitmanip.d ../tango/ldc/bitmanip.di cp internal/ldc/vararg.d ../tango/ldc/vararg.di cp import/ldc/* ../tango/ldc # make the runtime cp -R lib ../tango cd ../tango/lib make -f ldc-posix.mak clean make -f ldc-posix.mak sharedlib cd ../.. # install the runtime rm -f lib/libldc-runtime-shared.so cp runtime/internal/libldc-runtime-shared.so lib rm -f lib/libtango-gc-basic-shared.so cp tango/lib/gc/basic/libtango-gc-basic-shared.so lib rm -f lib/libtango-cc-tango-shared.so cp tango/lib/common/tango/libtango-cc-tango-shared.so lib