mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
Bug 1823599 - Add a mechanism to force running (pre-)export. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D173279
This commit is contained in:
parent
7400f52a60
commit
5fe3e81c1d
@ -2,3 +2,4 @@
|
||||
command: cargo-check
|
||||
continue_on_error: true
|
||||
# cargo_build_flags: []
|
||||
requires_export: true
|
||||
|
@ -127,6 +127,9 @@ def _cargo_config_yaml_schema():
|
||||
# Whether `make` should stop immediately in case
|
||||
# of error returned by the command. Default: False
|
||||
"continue_on_error": Boolean,
|
||||
# Whether this command requires pre_export and export build
|
||||
# targets to have run. Defaults to bool(cargo_build_flags).
|
||||
"requires_export": Boolean,
|
||||
# Build flags to use. If this variable is not
|
||||
# defined here, the build flags are generated automatically and are
|
||||
# the same as for `cargo build`. See available substitutions at the
|
||||
@ -235,9 +238,10 @@ def cargo(
|
||||
cargo_extra_flags = yaml_config.get("cargo_extra_flags")
|
||||
if cargo_extra_flags is not None:
|
||||
cargo_extra_flags = " ".join(cargo_extra_flags)
|
||||
requires_export = yaml_config.get("requires_export", bool(cargo_build_flags))
|
||||
|
||||
ret = 0
|
||||
if cargo_build_flags:
|
||||
if requires_export:
|
||||
# This directory is created during export. If it's not there,
|
||||
# export hasn't run already.
|
||||
deps = Path(command_context.topobjdir) / ".deps"
|
||||
|
Loading…
Reference in New Issue
Block a user