Mercurial > projects > ldc
annotate premake.lua @ 117:56a21f3e5d3e trunk
[svn r121] Finished ModuleInfo implementation.
Static ctors/dtors now work according to spec.
Changed class vtable types slightly in some cases. Overridden functions now always take the the type of the first class declaring the method as this parameter. This helps when using headers (w. implementation somewhere else)
author | lindquist |
---|---|
date | Mon, 26 Nov 2007 04:49:23 +0100 |
parents | fd32135dca3e |
children | c42d245468ea |
rev | line source |
---|---|
1 | 1 project.name = llvmdc |
2 | |
3 package = newpackage() | |
4 package.name = "idgen" | |
5 package.kind = "exe" | |
6 package.language = "c++" | |
7 package.files = { "dmd/idgen.c" } | |
8 package.buildoptions = { "-x c++" } | |
35
3cfcb944304e
[svn r39] * Updated to DMD 1.022 with the exception of:
lindquist
parents:
4
diff
changeset
|
9 package.postbuildcommands = { "./idgen", "mv -f id.c id.h dmd" } |
1 | 10 |
11 package = newpackage() | |
12 package.name = "impcnvgen" | |
13 package.kind = "exe" | |
14 package.language = "c++" | |
15 package.files = { "dmd/impcnvgen.c" } | |
16 package.buildoptions = { "-x c++" } | |
35
3cfcb944304e
[svn r39] * Updated to DMD 1.022 with the exception of:
lindquist
parents:
4
diff
changeset
|
17 package.postbuildcommands = { "./impcnvgen", "mv -f impcnvtab.c dmd" } |
1 | 18 |
19 package = newpackage() | |
35
3cfcb944304e
[svn r39] * Updated to DMD 1.022 with the exception of:
lindquist
parents:
4
diff
changeset
|
20 package.bindir = "bin" |
1 | 21 package.name = "llvmdc" |
22 package.kind = "exe" | |
23 package.language = "c++" | |
86
fd32135dca3e
[svn r90] Major updates to the gen directory. Redesigned the 'elem' struct. Much more... !!!
lindquist
parents:
35
diff
changeset
|
24 package.files = { matchfiles("dmd/*.c"), matchfiles("gen/*.cpp") } |
1 | 25 package.excludes = { "dmd/idgen.c", "dmd/impcnvgen.c" } |
26 package.buildoptions = { "-x c++", "`llvm-config --cxxflags`" } | |
27 package.linkoptions = { "`llvm-config --libs native bitwriter bitreader`", "`llvm-config --ldflags`" } | |
28 package.defines = { "IN_LLVM", "_DH" } | |
29 package.config.Release.defines = { "LLVMD_NO_LOGGER" } | |
86
fd32135dca3e
[svn r90] Major updates to the gen directory. Redesigned the 'elem' struct. Much more... !!!
lindquist
parents:
35
diff
changeset
|
30 package.config.Debug.buildoptions = { "-g -O0" } |
1 | 31 --package.targetprefix = "llvm" |
4
e116aa1488e6
[svn r8] changed backend includes to always use the gen/<foo>.h prefix
lindquist
parents:
1
diff
changeset
|
32 package.includepaths = { ".", "dmd" } |
1 | 33 --package.postbuildcommands = { "cd runtime; ./build.sh; cd .." } |
34 package.links = { "gc" } |