Use mingw windows subsystem syntax for gcc only

This commit is contained in:
Vladimir Vukicevic 2016-08-12 21:10:10 -04:00
parent 5ab760e698
commit 59da96def1

View file

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