From 1a8871ea1b090bb90c66ec0c5481a1e5c204220b Mon Sep 17 00:00:00 2001 From: UK992 Date: Fri, 29 Jul 2016 00:18:25 +0200 Subject: [PATCH] Add link arguments to test-unit --- python/servo/testing_commands.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index b4c045d4a709..4776a9209d18 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -209,6 +209,9 @@ def test_unit(self, test_name=None, package=None): env = self.build_env() env["RUST_BACKTRACE"] = "1" + if sys.platform == "win32" or sys.platform == "msys": + env["RUSTFLAGS"] = "-C link-args=-Wl,--subsystem,windows" + result = call(args, env=env, cwd=self.servo_crate()) if result != 0: return result