Mercurial > projects > ldc
annotate premake.lua @ 35:3cfcb944304e trunk
[svn r39] * Updated to DMD 1.022 with the exception of:
Bugzilla 278: dmd.conf search path doesn't work
This fix was causing crashes for me :/ So for it's the old behaviour
author | lindquist |
---|---|
date | Tue, 09 Oct 2007 06:21:30 +0200 |
parents | e116aa1488e6 |
children | fd32135dca3e |
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++" | |
24 package.files = { matchfiles("dmd/*.c"), matchfiles("gen/*.c") } | |
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" } | |
30 package.config.Debug.buildoptions = { "-g" } | |
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" } |