genshaders.py fixup draft
authorTed Mielczarek <ted@mielczarek.org>
Wed, 20 Sep 2017 11:54:47 -0400
changeset 668598 e75cbaad1bcdf7ff48f07219f8de2f2517d16b23
parent 668597 6f968a6675e3a4493bbf981e9019c79f8144a565
child 668599 b38dc73ab4624f5e277dbde31543ccf9d93b5302
push id81087
push userbmo:ted@mielczarek.org
push dateThu, 21 Sep 2017 20:59:05 +0000
milestone57.0a1
genshaders.py fixup MozReview-Commit-ID: 1cHCydZh2iU
gfx/layers/d3d11/genshaders.py
--- a/gfx/layers/d3d11/genshaders.py
+++ b/gfx/layers/d3d11/genshaders.py
@@ -85,17 +85,17 @@ def run_fxc(shader_model,
     fxc_location,
     '-nologo',
     '-T{0}'.format(shader_model),
     mozpath.relpath(shader_file, os.getcwd()),
     '-E{0}'.format(shader_name),
     '-Vn{0}'.format(shader_name),
     '-Vi',
   ]
-  if 'Linux' in buildconfig.substs['HOST_OS_ARCH']:
+  if 'Linux' in buildconfig.substs['HOST_OS_ARCH'] and not buildconfig.substs['HOST_IS_WSL']:
     argv.insert(0, buildconfig.substs['WINE'])
   if shader_model.startswith('vs_'):
     argv += ['-DVERTEX_SHADER']
   elif shader_model.startswith('ps_'):
     argv += ['-DPIXEL_SHADER']
 
   deps = None
   with ScopedTempFilename() as temp_filename: