Closed
Bug 1378440
Opened 7 years ago
Closed 7 years ago
add `mach cargo check` command
Categories
(Firefox Build System :: General, enhancement)
Firefox Build System
General
Tracking
(firefox56 fixed)
RESOLVED
FIXED
mozilla56
Tracking | Status | |
---|---|---|
firefox56 | --- | fixed |
People
(Reporter: froydnj, Assigned: froydnj)
References
Details
Attachments
(2 files)
1.96 KB,
patch
|
rillian
:
review+
|
Details | Diff | Splinter Review |
5.71 KB,
patch
|
rillian
:
review+
|
Details | Diff | Splinter Review |
No reason Gecko developers shouldn't have this.
Assignee | ||
Comment 1•7 years ago
|
||
All the machinery we set up for `cargo build` is equally useful for other commands, such as `cargo check`. Let's refactor things so that it's easy to reuse said machinery for `cargo check`.
Attachment #8883632 -
Flags: review?(giles)
Assignee | ||
Comment 2•7 years ago
|
||
Cargo recently introduced the `cargo check` command for shortening the edit-compile cycle when working on large programs. Since we don't really support invoking `cargo` directly, let's wire up this command to `mach`. Gecko developers can then `mach cargo check` to ensure their changes typecheck. I'm not completely happy with the rules.mk changes, but they were the easiest way I could think of doing things, since I didn't want to store information on what *kind* of crate we had at the mach level. I just wanted to say "check", and let the Makefile sort out what needs doing. Let me know what you think.
Attachment #8883633 -
Flags: review?(giles)
Comment 3•7 years ago
|
||
Comment on attachment 8883633 [details] [diff] [review] part 2 - add `mach cargo check` Review of attachment 8883633 [details] [diff] [review]: ----------------------------------------------------------------- Looks good. Thanks for doing this!
Attachment #8883633 -
Flags: review?(giles) → review+
Updated•7 years ago
|
Attachment #8883632 -
Flags: review?(giles) → review+
Pushed by nfroyd@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/4168fad05a11 part 1 - make Cargo invocation macro more generic; r=rillian https://hg.mozilla.org/integration/mozilla-inbound/rev/90323301d1b1 part 2 - add `mach cargo check`; r=rillian
Comment 5•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4168fad05a11 https://hg.mozilla.org/mozilla-central/rev/90323301d1b1
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
Updated•6 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•