Mercurial > projects > ldc
changeset 581:8a8ee1f6b268
Only link default native backend by default.
Use the new option --add-backend to link in additional targets.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 07 Sep 2008 15:30:34 +0200 |
parents | 7824c21a58e3 |
children | 723806dc48d8 |
files | premake.lua |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/premake.lua Sat Sep 06 12:27:27 2008 +0200 +++ b/premake.lua Sun Sep 07 15:30:34 2008 +0200 @@ -5,6 +5,13 @@ -- we always make vtables opaque, it simply kills performance... OPAQUE_VTBLS = 1 +-- enables additional backends +addoption("add-backend", "Link in more than the native LLVM backend") +EXTRA_BACKENDS="" +if options["add-backend"] then + EXTRA_BACKENDS=options["add-backend"] +end + -- use of boehm gc USE_BOEHM_GC = 0 if OS ~= "windows" then @@ -55,7 +62,7 @@ package.buildoptions = { "-x c++", "`llvm-config --cxxflags`" } package.linkoptions = { -- long but it's faster than just 'all' - "`llvm-config --libs core asmparser bitreader bitwriter linker support target transformutils scalaropts ipo instrumentation x86 powerpc`", + "`llvm-config --libs backend asmparser bitreader bitwriter linker ipo instrumentation " .. EXTRA_BACKENDS .. "`", "`llvm-config --ldflags`", } package.defines = {