summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2014-07-04 12:03:34 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2014-07-04 12:03:34 +0800
commit7b6e421ad71bfe5e2e8b8e92ef97f42b77e79ba3 (patch)
treeaeb44c3fa1fc3788ae8c61b69183b2f679d3dc46
parenta4c9d09d7a89d3c80b4465a5c2ae0efa24158b24 (diff)
downloadgobject-introspection-7b6e421ad71bfe5e2e8b8e92ef97f42b77e79ba3.tar.gz
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.
-rw-r--r--build/detectenv_msvc.mak4
1 files changed, 4 insertions, 0 deletions
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