From 43df0a48ee3b7786c86d6f000e5f6acc990b61de Mon Sep 17 00:00:00 2001 From: Jonathan Schwender <55576758+jschwe@users.noreply.github.com> Date: Thu, 13 Jun 2024 12:03:32 +0200 Subject: 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 --- python/servo/build_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/servo/build_commands.py') 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( -- cgit v1.2.3