Skip to content

Commit

Permalink
Set up PATH to find DLLs for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vvuk committed Aug 17, 2016
1 parent ab00731 commit a25c3da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/servo/testing_commands.py
Expand Up @@ -221,7 +221,11 @@ def test_unit(self, test_name=None, package=None):
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())
Expand Down

0 comments on commit a25c3da

Please sign in to comment.