comparison premake.lua @ 699:ed9a9e6dd1cc

Started changing target triple stuff, part of fixing #97
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Mon, 13 Oct 2008 17:28:39 +0200
parents 37a7688a7494
children 06576ece1a1b
comparison
equal deleted inserted replaced
698:f0ba5d37dd86 699:ed9a9e6dd1cc
17 17
18 -- are we on a Posix system? 18 -- are we on a Posix system?
19 POSIX = 1 19 POSIX = 1
20 if OS == "windows" then 20 if OS == "windows" then
21 POSIX = 0 21 POSIX = 0
22 end
23
24
25 -- guess the host machine description
26 -- also allow overriding it
27
28 addoption("target-override", "Override the default target machine");
29
30 TRIPLE = "";
31 if options["target-override"] then
32 TRIPLE = options["target-override"]
33 else
34 local p = io.popen("./config.guess")
35 TRIPLE = p:read()
22 end 36 end
23 37
24 -- D version - don't change these !!! 38 -- D version - don't change these !!!
25 DMDV1 = "1" 39 DMDV1 = "1"
26 40
63 "_DH", 77 "_DH",
64 "OPAQUE_VTBLS="..OPAQUE_VTBLS, 78 "OPAQUE_VTBLS="..OPAQUE_VTBLS,
65 "USE_BOEHM_GC="..USE_BOEHM_GC, 79 "USE_BOEHM_GC="..USE_BOEHM_GC,
66 "DMDV1="..DMDV1, 80 "DMDV1="..DMDV1,
67 "POSIX="..POSIX, 81 "POSIX="..POSIX,
82 "DEFAULT_TARGET_TRIPLE=\\\""..TRIPLE.."\\\"",
68 } 83 }
69 package.config.Release.defines = { "LLVMD_NO_LOGGER" } 84 package.config.Release.defines = { "LLVMD_NO_LOGGER" }
70 package.config.Debug.buildoptions = { "-g -O0" } 85 package.config.Debug.buildoptions = { "-g -O0" }
71 --package.targetprefix = "llvm" 86 --package.targetprefix = "llvm"
72 package.includepaths = { ".", "dmd" } 87 package.includepaths = { ".", "dmd" }