comparison premake.lua @ 571:cbd6c8073a32

Changed all '#if linux || __APPLE__' to '#if POSIX' so we can support other platforms too, thanx for the suggestion anders.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Tue, 02 Sep 2008 23:10:12 +0200
parents 1c7220171d41
children 8a8ee1f6b268
comparison
equal deleted inserted replaced
568:f75b16f1e405 571:cbd6c8073a32
11 addoption("enable-boehm-gc", "Enable use of the Boehm GC (broken!)") 11 addoption("enable-boehm-gc", "Enable use of the Boehm GC (broken!)")
12 12
13 if options["enable-boehm-gc"] then 13 if options["enable-boehm-gc"] then
14 USE_BOEHM_GC = 1 14 USE_BOEHM_GC = 1
15 end 15 end
16 end
17
18 -- are we on a Posix system?
19 POSIX = 1
20 if OS == "windows" then
21 POSIX = 0
16 end 22 end
17 23
18 -- D version - don't change these !!! 24 -- D version - don't change these !!!
19 DMDV1 = "1" 25 DMDV1 = "1"
20 26
56 "IN_LLVM", 62 "IN_LLVM",
57 "_DH", 63 "_DH",
58 "OPAQUE_VTBLS="..OPAQUE_VTBLS, 64 "OPAQUE_VTBLS="..OPAQUE_VTBLS,
59 "USE_BOEHM_GC="..USE_BOEHM_GC, 65 "USE_BOEHM_GC="..USE_BOEHM_GC,
60 "DMDV1="..DMDV1, 66 "DMDV1="..DMDV1,
67 "POSIX="..POSIX,
61 } 68 }
62 package.config.Release.defines = { "LLVMD_NO_LOGGER" } 69 package.config.Release.defines = { "LLVMD_NO_LOGGER" }
63 package.config.Debug.buildoptions = { "-g -O0" } 70 package.config.Debug.buildoptions = { "-g -O0" }
64 --package.targetprefix = "llvm" 71 --package.targetprefix = "llvm"
65 package.includepaths = { ".", "dmd" } 72 package.includepaths = { ".", "dmd" }