summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJeremy Andrews <athenian200@outlook.com>2022-07-01 17:43:55 -0500
committerJeremy Andrews <athenian200@outlook.com>2022-07-02 13:05:26 -0500
commit057c632bee4c1d2ec9e1546229227583ea4fc835 (patch)
tree75ecfb67a9e1f77a229598f48bbe97b80839227b /python
parent07689ab83f78ea379e744fdb473b22ed0f9ebf95 (diff)
downloaduxp-057c632bee4c1d2ec9e1546229227583ea4fc835.tar.gz
Issue #1956 - Allow building with newer MSVC versions.
Diffstat (limited to 'python')
-rw-r--r--python/mozbuild/mozbuild/test/configure/common.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/mozbuild/mozbuild/test/configure/common.py b/python/mozbuild/mozbuild/test/configure/common.py
index 089d61a0d1..5ce04e6091 100644
--- a/python/mozbuild/mozbuild/test/configure/common.py
+++ b/python/mozbuild/mozbuild/test/configure/common.py
@@ -89,7 +89,7 @@ class ConfigureTestSandbox(ConfigureSandbox):
self._subprocess_paths[environ['CONFIG_SHELL']] = self.shell
paths.append(environ['CONFIG_SHELL'])
self._environ = copy.copy(environ)
-
+ self._subprocess_paths[mozpath.join(topsrcdir, 'build/win32/vswhere.exe')] = self.vswhere
vfs = ConfigureTestVFS(paths)
os_path = {
@@ -215,6 +215,8 @@ class ConfigureTestSandbox(ConfigureSandbox):
return self._subprocess_paths[script](stdin, args[1:])
return 127, '', 'File not found'
+ def vswhere(self, stdin, args):
+ return 0, '[]', ''
class BaseConfigureTest(unittest.TestCase):
HOST = 'x86_64-pc-linux-gnu'