Bug 1242005 - Disable C4359 to allow compilation on VS2015; r?kip draft
authorGregory Szorc <gps@mozilla.com>
Mon, 14 Mar 2016 14:11:40 -0700
changeset 340028 948a412a26628133758e978202c0b9f30daece8c
parent 339874 f0c0480732d36153e8839c7f17394d45f679f87d
child 340029 0ddf2275c70f9e3b65c9718d704430b591878301
child 340031 3375c2b043a0b3313e5976eda11db69b3f79a4cb
child 340040 dabd4a9ee62c09e73ada5f06ae20c81d357eeae5
child 340071 fdafa097830adade96e026b7dc1fa82f3210d3ec
push id12884
push usergszorc@mozilla.com
push dateMon, 14 Mar 2016 21:14:42 +0000
reviewerskip
bugs1242005
milestone48.0a1
Bug 1242005 - Disable C4359 to allow compilation on VS2015; r?kip The proper fix is to fix the underlying problem. However, I haven't touched C++ in months and I'm lazy. So I'm going for the quick fix so Visual Studio 2015 rollout is unblocked. MozReview-Commit-ID: 14cZCGPkx0V
gfx/vr/moz.build
--- a/gfx/vr/moz.build
+++ b/gfx/vr/moz.build
@@ -52,8 +52,14 @@ CFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
 CFLAGS += CONFIG['TK_CFLAGS']
 
 include('/ipc/chromium/chromium-config.mozbuild')
 
 FINAL_LIBRARY = 'xul'
 
 if CONFIG['GNU_CXX']:
     CXXFLAGS += ['-Wshadow']
+
+# This is intended as a temporary hack to enable VS2015 builds.
+if CONFIG['_MSC_VER']:
+    # ovr_capi_dynamic.h '<unnamed-tag>': Alignment specifier is less than
+    # actual alignment (8), and will be ignored
+    CXXFLAGS += ['-wd4359']