Mercurial > projects > ldc
comparison premake.lua @ 268:23d0d9855cad trunk
[svn r289] Fixed: right shift >> was broken for unsigned types.
Fixed: debug info for classes now started.
author | lindquist |
---|---|
date | Sun, 15 Jun 2008 18:52:27 +0200 |
parents | a168a2c3ea48 |
children | 297690b5d4a5 |
comparison
equal
deleted
inserted
replaced
267:c43911baea21 | 268:23d0d9855cad |
---|---|
1 project.name = llvmdc | 1 project.name = llvmdc |
2 | 2 |
3 -- options | |
4 OPAQUE_VTBLS = 1 | |
5 USE_BOEHM_GC = 1 | |
6 | |
7 -- idgen | |
3 package = newpackage() | 8 package = newpackage() |
4 package.name = "idgen" | 9 package.name = "idgen" |
5 package.kind = "exe" | 10 package.kind = "exe" |
6 package.language = "c++" | 11 package.language = "c++" |
7 package.files = { "dmd/idgen.c" } | 12 package.files = { "dmd/idgen.c" } |
8 package.buildoptions = { "-x c++" } | 13 package.buildoptions = { "-x c++" } |
9 package.postbuildcommands = { "./idgen", "mv -f id.c id.h dmd" } | 14 package.postbuildcommands = { "./idgen", "mv -f id.c id.h dmd" } |
10 | 15 |
16 -- impcnvgen | |
11 package = newpackage() | 17 package = newpackage() |
12 package.name = "impcnvgen" | 18 package.name = "impcnvgen" |
13 package.kind = "exe" | 19 package.kind = "exe" |
14 package.language = "c++" | 20 package.language = "c++" |
15 package.files = { "dmd/impcnvgen.c" } | 21 package.files = { "dmd/impcnvgen.c" } |
16 package.buildoptions = { "-x c++" } | 22 package.buildoptions = { "-x c++" } |
17 package.postbuildcommands = { "./impcnvgen", "mv -f impcnvtab.c dmd" } | 23 package.postbuildcommands = { "./impcnvgen", "mv -f impcnvtab.c dmd" } |
18 | 24 |
25 -- llvmdc | |
19 package = newpackage() | 26 package = newpackage() |
20 package.bindir = "bin" | 27 package.bindir = "bin" |
21 package.name = "llvmdc" | 28 package.name = "llvmdc" |
22 package.kind = "exe" | 29 package.kind = "exe" |
23 package.language = "c++" | 30 package.language = "c++" |
30 "`llvm-config --ldflags`", | 37 "`llvm-config --ldflags`", |
31 } | 38 } |
32 package.defines = { | 39 package.defines = { |
33 "IN_LLVM", | 40 "IN_LLVM", |
34 "_DH", | 41 "_DH", |
35 "OPAQUE_VTBLS=1", | 42 "OPAQUE_VTBLS="..OPAQUE_VTBLS, |
43 "USE_BOEHM_GC="..USE_BOEHM_GC, | |
36 } | 44 } |
37 package.config.Release.defines = { "LLVMD_NO_LOGGER" } | 45 package.config.Release.defines = { "LLVMD_NO_LOGGER" } |
38 package.config.Debug.buildoptions = { "-g -O0" } | 46 package.config.Debug.buildoptions = { "-g -O0" } |
39 --package.targetprefix = "llvm" | 47 --package.targetprefix = "llvm" |
40 package.includepaths = { ".", "dmd" } | 48 package.includepaths = { ".", "dmd" } |
41 --package.postbuildcommands = { "cd runtime; ./build.sh; cd .." } | 49 --package.postbuildcommands = { "cd runtime; ./build.sh; cd .." } |
42 package.links = { "gc" } | 50 if USE_BOEHM_GC == 1 then |
51 package.links = { "gc" } | |
52 end |