[gobject-introspection] detectenv_msvc.mak: Add MSVC 2008 x64-specific CFLAG
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] detectenv_msvc.mak: Add MSVC 2008 x64-specific CFLAG
- Date: Fri, 4 Jul 2014 04:03:44 +0000 (UTC)
commit 7b6e421ad71bfe5e2e8b8e92ef97f42b77e79ba3
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Fri Jul 4 12:03:34 2014 +0800
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 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/build/detectenv_msvc.mak b/build/detectenv_msvc.mak
index 3e3dcdf..d4b9b84 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]