mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
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:
commit
304887bad4
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue