mirror of
https://github.com/servo/servo.git
synced 2025-06-06 00:25:37 +00:00
Use mingw windows subsystem syntax for gcc only
This commit is contained in:
parent
5ab760e698
commit
59da96def1
1 changed files with 4 additions and 3 deletions
|
@ -25,7 +25,7 @@ from mach.decorators import (
|
|||
Command,
|
||||
)
|
||||
|
||||
from servo.command_base import CommandBase, call, check_call
|
||||
from servo.command_base import CommandBase, call, check_call, host_triple
|
||||
from wptrunner import wptcommandline
|
||||
from update import updatecommandline
|
||||
from servo_tidy import tidy
|
||||
|
@ -220,8 +220,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"
|
||||
if sys.platform in ("win32", "msys"):
|
||||
if "msvc" not in host_triple():
|
||||
env["RUSTFLAGS"] = "-C link-args=-Wl,--subsystem,windows"
|
||||
|
||||
result = call(args, env=env, cwd=self.servo_crate())
|
||||
if result != 0:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue