Skip to content

Commit

Permalink
Use mingw windows subsystem syntax for gcc only
Browse files Browse the repository at this point in the history
  • Loading branch information
vvuk committed Aug 17, 2016
1 parent 5ab760e commit 59da96d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions python/servo/testing_commands.py
Expand Up @@ -25,7 +25,7 @@
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
Expand Down Expand Up @@ -220,8 +220,9 @@ def test_unit(self, test_name=None, package=None):
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:
Expand Down

0 comments on commit 59da96d

Please sign in to comment.