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 -->
This commit is contained in:
bors-servo 2016-07-29 07:41:37 -05:00 committed by GitHub
commit 304887bad4

View file

@ -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