aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorVladimir Vukicevic <vladimir@pobox.com>2016-08-12 21:10:10 -0400
committerVladimir Vukicevic <vladimir@pobox.com>2016-08-17 09:51:14 -0400
commit59da96def12d7c1558cb669bc44f3b6c286d38de (patch)
tree8f7e49cc7878675aea2da020724c07d03e3155d8 /python
parent5ab760e6986a279e966909e33b6765db163203dd (diff)
downloadservo-59da96def12d7c1558cb669bc44f3b6c286d38de.tar.gz
servo-59da96def12d7c1558cb669bc44f3b6c286d38de.zip
Use mingw windows subsystem syntax for gcc only
Diffstat (limited to 'python')
-rw-r--r--python/servo/testing_commands.py7
1 files 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: