diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2014-07-04 12:03:34 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2014-07-04 12:03:34 +0800 |
commit | 7b6e421ad71bfe5e2e8b8e92ef97f42b77e79ba3 (patch) | |
tree | aeb44c3fa1fc3788ae8c61b69183b2f679d3dc46 /build | |
parent | a4c9d09d7a89d3c80b4465a5c2ae0efa24158b24 (diff) | |
download | gobject-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.
Diffstat (limited to 'build')
-rw-r--r-- | build/detectenv_msvc.mak | 4 |
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
|