aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Schwender <55576758+jschwe@users.noreply.github.com>2024-06-13 12:03:32 +0200
committerGitHub <noreply@github.com>2024-06-13 10:03:32 +0000
commit43df0a48ee3b7786c86d6f000e5f6acc990b61de (patch)
tree91c442670414bef08f247c8fb4850dbc412dc248
parent0a641816bf8f402800d7ecec12d2d64505975c16 (diff)
downloadservo-43df0a48ee3b7786c86d6f000e5f6acc990b61de.tar.gz
servo-43df0a48ee3b7786c86d6f000e5f6acc990b61de.zip
mach: Use `cargo rustc` instead of `cargo build` (#32484)
This allows passing `--crate-type` and rustflags which only apply to the top-level-crate. The former is useful to merge the android and ohos apps into servoshell, while the later may be useful in the future. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
-rw-r--r--python/servo/build_commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py
index 070873ad5b3..3891fbbc0c9 100644
--- a/python/servo/build_commands.py
+++ b/python/servo/build_commands.py
@@ -99,7 +99,7 @@ class MachCommands(CommandBase):
print((key, env[key]))
status = self.run_cargo_build_like_command(
- "build", opts, env=env, verbose=verbose, **kwargs)
+ "rustc", opts, env=env, verbose=verbose, **kwargs)
if status == 0:
built_binary = self.get_binary_path(