diff options
author | Jack Moffitt <jack@metajack.im> | 2016-07-26 11:14:40 -0600 |
---|---|---|
committer | Jack Moffitt <jack@metajack.im> | 2016-07-26 15:18:54 -0600 |
commit | ca8b375656428ee8c1bbae1b25519778ac90c746 (patch) | |
tree | 436d2cbce3e1d2ca7acf6e86dae352848d0ad287 /python/servo/build_commands.py | |
parent | d6266c7cee0a8abb1d0f98ac183f744bcc925697 (diff) | |
download | servo-ca8b375656428ee8c1bbae1b25519778ac90c746.tar.gz servo-ca8b375656428ee8c1bbae1b25519778ac90c746.zip |
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.
Diffstat (limited to 'python/servo/build_commands.py')
-rw-r--r-- | python/servo/build_commands.py | 3 |
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) |