aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-07-29 07:41:37 -0500
committerGitHub <noreply@github.com>2016-07-29 07:41:37 -0500
commit304887bad402ce8385fd07586e8621da8b96f67c (patch)
treede0524a77fa5620748edb702fa996c40c8431c7b
parent94e6f59174f7102d37eae7107e6bd502a9b0ebe1 (diff)
parent1a8871ea1b090bb90c66ec0c5481a1e5c204220b (diff)
downloadservo-304887bad402ce8385fd07586e8621da8b96f67c.tar.gz
servo-304887bad402ce8385fd07586e8621da8b96f67c.zip
Auto merge of #12640 - UK992:windows-link-args, r=jdm
Add link arguments to test-unit Apply same link arguments added in https://github.com/servo/servo/pull/12605 to ``test-unit``, to prevent rebuild servo. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12640) <!-- Reviewable:end -->
-rw-r--r--python/servo/testing_commands.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py
index b4c045d4a70..4776a9209d1 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -209,6 +209,9 @@ class MachCommands(CommandBase):
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