diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/servo/testing_commands.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index f5b87c228f0..ffc2dd3869e 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -221,7 +221,11 @@ class MachCommands(CommandBase): env["RUST_BACKTRACE"] = "1" if sys.platform in ("win32", "msys"): - if "msvc" not in host_triple(): + if "msvc" in host_triple(): + # on MSVC, we need some DLLs in the path. They were copied + # in to the servo.exe build dir, so just point PATH to that. + env["PATH"] = "%s%s%s" % (path.dirname(self.get_binary_path(False, False)), os.pathsep, env["PATH"]) + else: env["RUSTFLAGS"] = "-C link-args=-Wl,--subsystem,windows" result = call(args, env=env, cwd=self.servo_crate()) |