From 7b6e421ad71bfe5e2e8b8e92ef97f42b77e79ba3 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Fri, 4 Jul 2014 12:03:34 +0800 Subject: detectenv_msvc.mak: Add MSVC 2008 x64-specific CFLAG Due to an optimization bug in the Visual Studio 2008 x64 compiler/linker, compilation of some programs shipped with g-i will hang, so use different optimization settings for it, so that programs built through the NMake Makefiles can build correctly. A similar setting for the g-ir-compiler is already in there. --- build/detectenv_msvc.mak | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build/detectenv_msvc.mak b/build/detectenv_msvc.mak index 3e3dcdf4..d4b9b84a 100644 --- a/build/detectenv_msvc.mak +++ b/build/detectenv_msvc.mak @@ -53,7 +53,11 @@ VALID_CFGSET = TRUE !endif !if "$(CFG)" == "release" +!if "$(VSVER)" == "9" && "$(PLAT)" == "x64" +CFLAGS_ADD = /MD /O1 /Oi +!else CFLAGS_ADD = /MD /O2 +!endif !else CFLAGS_ADD = /MDd /Od /Zi /DG_ENABLE_DEBUG !endif -- cgit v1.2.1