From 59da96def12d7c1558cb669bc44f3b6c286d38de Mon Sep 17 00:00:00 2001 From: Vladimir Vukicevic Date: Fri, 12 Aug 2016 21:10:10 -0400 Subject: [PATCH] Use mingw windows subsystem syntax for gcc only --- python/servo/testing_commands.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index 5eaad0ba7b9..f5b87c228f0 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -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: