diff --git a/gfx/qcms/moz.build b/gfx/qcms/moz.build
--- a/gfx/qcms/moz.build
+++ b/gfx/qcms/moz.build
@@ -41,8 +41,15 @@ if use_sse1:
 
 if use_sse2:
     SOURCES += ['transform-sse2.c']
     SOURCES['transform-sse2.c'].flags += CONFIG['SSE2_FLAGS']
 
 if use_altivec:
     SOURCES += ['transform-altivec.c']
     SOURCES['transform-altivec.c'].flags += ['-maltivec']
+
+if CONFIG['_MSC_VER']:
+    if '-DTT_MEMUTIL' in CONFIG['MOZ_OPTIMIZE_FLAGS']:
+        SOURCES['transform-sse2.c'].flags += [
+            '-GL-',
+            '-openmp',
+        ]
