aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/build_commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/servo/build_commands.py')
-rw-r--r--python/servo/build_commands.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py
index f344b050f4e..df727e2776f 100644
--- a/python/servo/build_commands.py
+++ b/python/servo/build_commands.py
@@ -236,6 +236,9 @@ class MachCommands(CommandBase):
cargo_binary = "cargo" + BIN_SUFFIX
+ if sys.platform == "win32" or sys.platform == "msys":
+ env["RUSTFLAGS"] = "-C link-args=-Wl,--subsystem,windows"
+
status = call(
[cargo_binary, "build"] + opts,
env=env, cwd=self.servo_crate(), verbose=verbose)