Module: Mesa
Branch: 8.0
Commit: a0ea21ff04e0873d8ec804928d5a858b8369aaa2
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a0ea21ff04e0873d8ec804928d5a858b8369aaa2

Author: José Fonseca <[email protected]>
Date:   Fri Jul 20 16:16:11 2012 -0600

mesa: disable MSVC global optimization in pack.c

To reduce excessive compilation time in release mode.

NOTE: This is a candidate for the 8.0 branch.

Tested-by: Brian Paul <[email protected]>
(cherry picked from commit 1a8f6ac5a46dfbb8287ee2bacdd11c3a1a3a65c7)

---

 src/mesa/main/pack.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/mesa/main/pack.c b/src/mesa/main/pack.c
index f3f9283..ce910a7 100644
--- a/src/mesa/main/pack.c
+++ b/src/mesa/main/pack.c
@@ -29,6 +29,19 @@
  */
 
 
+/*
+ * XXX: MSVC takes forever to compile this module for x86_64 unless we disable
+ * this global optimization.
+ *
+ * See also:
+ * - http://msdn.microsoft.com/en-us/library/1yk3ydd7.aspx
+ * - http://msdn.microsoft.com/en-us/library/chh3fb0k.aspx
+ */
+#if defined(_MSC_VER) && defined(_M_X64)
+#  pragma optimize( "g", off )
+#endif
+
+
 #include "glheader.h"
 #include "colormac.h"
 #include "enums.h"

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to