mirror of
https://github.com/servo/servo.git
synced 2025-06-20 07:08:59 +01:00
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:
parent
d6266c7cee
commit
ca8b375656
2 changed files with 737 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue