Fix font metrics and switch to windows subsystem

Currently fonts are using incorrect metrics and the app uses the console
subsystem. This patch adds aliases so that font metrics are found and
instructs the linker to use the windows subsystem.
This commit is contained in:
Jack Moffitt 2016-07-26 11:14:40 -06:00
parent d6266c7cee
commit ca8b375656
2 changed files with 737 additions and 1 deletions

View file

@ -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)