comparison premake.lua @ 582:723806dc48d8

Don't link in any target code, was unnecessary.
author Christian Kamm <kamm incasoftware de>
date Sun, 07 Sep 2008 16:16:10 +0200
parents 8a8ee1f6b268
children 6aaa3d3c1183
comparison
equal deleted inserted replaced
581:8a8ee1f6b268 582:723806dc48d8
2 2
3 -- options 3 -- options
4 4
5 -- we always make vtables opaque, it simply kills performance... 5 -- we always make vtables opaque, it simply kills performance...
6 OPAQUE_VTBLS = 1 6 OPAQUE_VTBLS = 1
7
8 -- enables additional backends
9 addoption("add-backend", "Link in more than the native LLVM backend")
10 EXTRA_BACKENDS=""
11 if options["add-backend"] then
12 EXTRA_BACKENDS=options["add-backend"]
13 end
14 7
15 -- use of boehm gc 8 -- use of boehm gc
16 USE_BOEHM_GC = 0 9 USE_BOEHM_GC = 0
17 if OS ~= "windows" then 10 if OS ~= "windows" then
18 addoption("enable-boehm-gc", "Enable use of the Boehm GC (broken!)") 11 addoption("enable-boehm-gc", "Enable use of the Boehm GC (broken!)")
60 package.files = { matchfiles("dmd/*.c"), matchfiles("gen/*.cpp"), matchfiles("ir/*.cpp") } 53 package.files = { matchfiles("dmd/*.c"), matchfiles("gen/*.cpp"), matchfiles("ir/*.cpp") }
61 package.excludes = { "dmd/idgen.c", "dmd/impcnvgen.c" } 54 package.excludes = { "dmd/idgen.c", "dmd/impcnvgen.c" }
62 package.buildoptions = { "-x c++", "`llvm-config --cxxflags`" } 55 package.buildoptions = { "-x c++", "`llvm-config --cxxflags`" }
63 package.linkoptions = { 56 package.linkoptions = {
64 -- long but it's faster than just 'all' 57 -- long but it's faster than just 'all'
65 "`llvm-config --libs backend asmparser bitreader bitwriter linker ipo instrumentation " .. EXTRA_BACKENDS .. "`", 58 "`llvm-config --libs bitwriter linker ipo instrumentation`",
66 "`llvm-config --ldflags`", 59 "`llvm-config --ldflags`",
67 } 60 }
68 package.defines = { 61 package.defines = {
69 "IN_LLVM", 62 "IN_LLVM",
70 "_DH", 63 "_DH",