mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
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>
This commit is contained in:
parent
0a641816bf
commit
43df0a48ee
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ class MachCommands(CommandBase):
|
||||||
print((key, env[key]))
|
print((key, env[key]))
|
||||||
|
|
||||||
status = self.run_cargo_build_like_command(
|
status = self.run_cargo_build_like_command(
|
||||||
"build", opts, env=env, verbose=verbose, **kwargs)
|
"rustc", opts, env=env, verbose=verbose, **kwargs)
|
||||||
|
|
||||||
if status == 0:
|
if status == 0:
|
||||||
built_binary = self.get_binary_path(
|
built_binary = self.get_binary_path(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue