Mercurial > projects > ldc
annotate premake.lua @ 230:79d8f6b3fbaf trunk
[svn r246] fixed asm4 test
author | lindquist |
---|---|
date | Sat, 07 Jun 2008 21:38:14 +0200 |
parents | aca17e55b7a5 |
children | a168a2c3ea48 |
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++" | |
136
0e28624814e8
[svn r140] did a lot of the work towards being able to pass multiple modules on the command line. not complete yet though
lindquist
parents:
131
diff
changeset
|
24 package.files = { matchfiles("dmd/*.c"), matchfiles("gen/*.cpp"), matchfiles("ir/*.cpp") } |
1 | 25 package.excludes = { "dmd/idgen.c", "dmd/impcnvgen.c" } |
26 package.buildoptions = { "-x c++", "`llvm-config --cxxflags`" } | |
131 | 27 package.linkoptions = { |
28 -- long but it's faster than just 'all' | |
29 "`llvm-config --libs core asmparser bitreader bitwriter support target transformutils scalaropts ipo instrumentation x86 powerpc`", | |
193
aca17e55b7a5
[svn r209] Fixed: exotic array to pointer casts were broken.
lindquist
parents:
136
diff
changeset
|
30 "`llvm-config --ldflags`", |
131 | 31 } |
193
aca17e55b7a5
[svn r209] Fixed: exotic array to pointer casts were broken.
lindquist
parents:
136
diff
changeset
|
32 package.defines = { |
aca17e55b7a5
[svn r209] Fixed: exotic array to pointer casts were broken.
lindquist
parents:
136
diff
changeset
|
33 "IN_LLVM", |
aca17e55b7a5
[svn r209] Fixed: exotic array to pointer casts were broken.
lindquist
parents:
136
diff
changeset
|
34 "_DH", |
aca17e55b7a5
[svn r209] Fixed: exotic array to pointer casts were broken.
lindquist
parents:
136
diff
changeset
|
35 "OPAQUE_VTBLS=1", |
aca17e55b7a5
[svn r209] Fixed: exotic array to pointer casts were broken.
lindquist
parents:
136
diff
changeset
|
36 } |
1 | 37 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
|
38 package.config.Debug.buildoptions = { "-g -O0" } |
1 | 39 --package.targetprefix = "llvm" |
4
e116aa1488e6
[svn r8] changed backend includes to always use the gen/<foo>.h prefix
lindquist
parents:
1
diff
changeset
|
40 package.includepaths = { ".", "dmd" } |
1 | 41 --package.postbuildcommands = { "cd runtime; ./build.sh; cd .." } |
42 package.links = { "gc" } |