Bug 1242005 - Disable C4359 to allow compilation on VS2015; r=kip
authorGregory Szorc <gps@mozilla.com>
Mon, 14 Mar 2016 14:11:40 -0700
changeset 288642 7b559b11d4d1a07ba987fe5a2ec7b036a73185ef
parent 288641 e6092e439db9d332d8f62d0cfcf10b6e13379ad4
child 288643 0f34a2f4714e35f077029bd7883fdc3dd38af9a8
push id30087
push usercbook@mozilla.com
push dateTue, 15 Mar 2016 09:43:43 +0000
treeherdermozilla-central@5e14887312d4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskip
bugs1242005
milestone48.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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']