annotate premake.lua @ 131:5825d48b27d1 trunk

[svn r135] * Merged DMD 1.025 * * Fixed a minor linking order mishap * * Added an command line option -annotate * * Fixed some problems with running optimizations * * Added std.stdio and dependencies to lphobos (still not 100% working, but compiles and links) * * Fixed problems with passing aggregate types to variadic functions * * Added initial code towards full GC support, currently based on malloc and friends, not all the runtime calls the GC yet for memory * * Fixed problems with resolving nested function context pointers for some heavily nested cases * * Redid function argument passing + other minor code cleanups, still lots to do on this end... *
author lindquist
date Fri, 04 Jan 2008 01:38:42 +0100
parents c42d245468ea
children 0e28624814e8
rev   line source
lindquist@1 1 project.name = llvmdc
lindquist@1 2
lindquist@1 3 package = newpackage()
lindquist@1 4 package.name = "idgen"
lindquist@1 5 package.kind = "exe"
lindquist@1 6 package.language = "c++"
lindquist@1 7 package.files = { "dmd/idgen.c" }
lindquist@1 8 package.buildoptions = { "-x c++" }
lindquist@35 9 package.postbuildcommands = { "./idgen", "mv -f id.c id.h dmd" }
lindquist@1 10
lindquist@1 11 package = newpackage()
lindquist@1 12 package.name = "impcnvgen"
lindquist@1 13 package.kind = "exe"
lindquist@1 14 package.language = "c++"
lindquist@1 15 package.files = { "dmd/impcnvgen.c" }
lindquist@1 16 package.buildoptions = { "-x c++" }
lindquist@35 17 package.postbuildcommands = { "./impcnvgen", "mv -f impcnvtab.c dmd" }
lindquist@1 18
lindquist@1 19 package = newpackage()
lindquist@35 20 package.bindir = "bin"
lindquist@1 21 package.name = "llvmdc"
lindquist@1 22 package.kind = "exe"
lindquist@1 23 package.language = "c++"
lindquist@86 24 package.files = { matchfiles("dmd/*.c"), matchfiles("gen/*.cpp") }
lindquist@1 25 package.excludes = { "dmd/idgen.c", "dmd/impcnvgen.c" }
lindquist@1 26 package.buildoptions = { "-x c++", "`llvm-config --cxxflags`" }
lindquist@131 27 package.linkoptions = {
lindquist@131 28 -- long but it's faster than just 'all'
lindquist@131 29 "`llvm-config --libs core asmparser bitreader bitwriter support target transformutils scalaropts ipo instrumentation x86 powerpc`",
lindquist@131 30 "`llvm-config --ldflags`"
lindquist@131 31 }
lindquist@1 32 package.defines = { "IN_LLVM", "_DH" }
lindquist@1 33 package.config.Release.defines = { "LLVMD_NO_LOGGER" }
lindquist@86 34 package.config.Debug.buildoptions = { "-g -O0" }
lindquist@1 35 --package.targetprefix = "llvm"
lindquist@4 36 package.includepaths = { ".", "dmd" }
lindquist@1 37 --package.postbuildcommands = { "cd runtime; ./build.sh; cd .." }
lindquist@1 38 package.links = { "gc" }