Mercurial > projects > ldc
comparison premake.lua @ 724:6de2ed4f0abe
Disabled parameter reversing by default, it broke mini/typeinfo10.d
Fixed 'inreg' property placement for functions with reversed parameters.
Made parameter reversal and inreg passing of first arg configurable in premake.lua
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Sat, 25 Oct 2008 18:12:07 +0200 |
parents | eed2de0c67a0 |
children | eea28bfa8416 |
comparison
equal
deleted
inserted
replaced
723:55f6c2e454d7 | 724:6de2ed4f0abe |
---|---|
34 os.execute("sh config.guess > default-target-triple.tmp") | 34 os.execute("sh config.guess > default-target-triple.tmp") |
35 TRIPLE = io.open("default-target-triple.tmp"):read() | 35 TRIPLE = io.open("default-target-triple.tmp"):read() |
36 end | 36 end |
37 | 37 |
38 io.write("Default target: '"..TRIPLE.."'\n"); | 38 io.write("Default target: '"..TRIPLE.."'\n"); |
39 | |
40 -- x86 ABI support | |
41 X86_REVERSE_PARAMS = 0 --disabled for now | |
42 X86_PASS_IN_EAX = 1 | |
39 | 43 |
40 -- D version - don't change these !!! | 44 -- D version - don't change these !!! |
41 DMDV1 = "1" | 45 DMDV1 = "1" |
42 | 46 |
43 -- idgen | 47 -- idgen |
80 "OPAQUE_VTBLS="..OPAQUE_VTBLS, | 84 "OPAQUE_VTBLS="..OPAQUE_VTBLS, |
81 "USE_BOEHM_GC="..USE_BOEHM_GC, | 85 "USE_BOEHM_GC="..USE_BOEHM_GC, |
82 "DMDV1="..DMDV1, | 86 "DMDV1="..DMDV1, |
83 "POSIX="..POSIX, | 87 "POSIX="..POSIX, |
84 "DEFAULT_TARGET_TRIPLE=\\\""..TRIPLE.."\\\"", | 88 "DEFAULT_TARGET_TRIPLE=\\\""..TRIPLE.."\\\"", |
89 "X86_REVERSE_PARAMS="..X86_REVERSE_PARAMS, | |
90 "X86_PASS_IN_EAX="..X86_PASS_IN_EAX, | |
85 } | 91 } |
86 package.config.Release.defines = { "LLVMD_NO_LOGGER" } | 92 package.config.Release.defines = { "LLVMD_NO_LOGGER" } |
87 package.config.Debug.buildoptions = { "-g -O0" } | 93 package.config.Debug.buildoptions = { "-g -O0" } |
88 --package.targetprefix = "llvm" | 94 --package.targetprefix = "llvm" |
89 package.includepaths = { ".", "dmd" } | 95 package.includepaths = { ".", "dmd" } |