diff 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
line wrap: on
line diff
--- a/premake.lua	Sun Jun 15 18:37:23 2008 +0200
+++ b/premake.lua	Sun Jun 15 18:52:27 2008 +0200
@@ -1,5 +1,10 @@
 project.name = llvmdc
 
+-- options
+OPAQUE_VTBLS = 1
+USE_BOEHM_GC = 1
+
+-- idgen
 package = newpackage()
 package.name = "idgen"
 package.kind = "exe"
@@ -8,6 +13,7 @@
 package.buildoptions = { "-x c++" }
 package.postbuildcommands = { "./idgen", "mv -f id.c id.h dmd" }
 
+-- impcnvgen
 package = newpackage()
 package.name = "impcnvgen"
 package.kind = "exe"
@@ -16,6 +22,7 @@
 package.buildoptions = { "-x c++" }
 package.postbuildcommands = { "./impcnvgen", "mv -f impcnvtab.c dmd" }
 
+-- llvmdc
 package = newpackage()
 package.bindir = "bin"
 package.name = "llvmdc"
@@ -32,11 +39,14 @@
 package.defines = {
     "IN_LLVM",
     "_DH",
-    "OPAQUE_VTBLS=1",
+    "OPAQUE_VTBLS="..OPAQUE_VTBLS,
+    "USE_BOEHM_GC="..USE_BOEHM_GC,
 }
 package.config.Release.defines = { "LLVMD_NO_LOGGER" }
 package.config.Debug.buildoptions = { "-g -O0" }
 --package.targetprefix = "llvm"
 package.includepaths = { ".", "dmd" }
 --package.postbuildcommands = { "cd runtime; ./build.sh; cd .." }
-package.links = { "gc" }
+if USE_BOEHM_GC == 1 then
+    package.links = { "gc" }
+end