Mercurial > projects > ldc
diff 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 |
line wrap: on
line diff
--- a/premake.lua Sat Oct 25 06:03:28 2008 +0200 +++ b/premake.lua Sat Oct 25 18:12:07 2008 +0200 @@ -37,6 +37,10 @@ io.write("Default target: '"..TRIPLE.."'\n"); +-- x86 ABI support +X86_REVERSE_PARAMS = 0 --disabled for now +X86_PASS_IN_EAX = 1 + -- D version - don't change these !!! DMDV1 = "1" @@ -82,6 +86,8 @@ "DMDV1="..DMDV1, "POSIX="..POSIX, "DEFAULT_TARGET_TRIPLE=\\\""..TRIPLE.."\\\"", + "X86_REVERSE_PARAMS="..X86_REVERSE_PARAMS, + "X86_PASS_IN_EAX="..X86_PASS_IN_EAX, } package.config.Release.defines = { "LLVMD_NO_LOGGER" } package.config.Debug.buildoptions = { "-g -O0" }