mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01: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,
|
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 wptrunner import wptcommandline
|
||||||
from update import updatecommandline
|
from update import updatecommandline
|
||||||
from servo_tidy import tidy
|
from servo_tidy import tidy
|
||||||
|
@ -220,8 +220,9 @@ class MachCommands(CommandBase):
|
||||||
env = self.build_env()
|
env = self.build_env()
|
||||||
env["RUST_BACKTRACE"] = "1"
|
env["RUST_BACKTRACE"] = "1"
|
||||||
|
|
||||||
if sys.platform == "win32" or sys.platform == "msys":
|
if sys.platform in ("win32", "msys"):
|
||||||
env["RUSTFLAGS"] = "-C link-args=-Wl,--subsystem,windows"
|
if "msvc" not in host_triple():
|
||||||
|
env["RUSTFLAGS"] = "-C link-args=-Wl,--subsystem,windows"
|
||||||
|
|
||||||
result = call(args, env=env, cwd=self.servo_crate())
|
result = call(args, env=env, cwd=self.servo_crate())
|
||||||
if result != 0:
|
if result != 0:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue