You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This adds the -Zmetadata-link flag, whose intent is to make the output
of `--emit metadata` equivalent to `--emit metadata,link`. The goal is
to allow pipelined builds with separate invocations of rustc. This is
desireable for two reasons:
1. The "artifact notification" system that rustc and cargo use to
communicate is very cargo-specific - it doesn't fit well into other
builds systems such as Buck or Bazel. In general its incompatible with
any build system which only recognizes output artifacts once the
compiler process has terminated. This is a particular problem when
compilation is distributed.
2. The rmeta file could be cached independently from the rlib. For
example, if one generates compilation-ready rmeta files as part
of "check" build, then those can be directly used for a full
compilation from cache, without having to regenerate them. This
means the build turns into a highly parallelizable invocation of
`rustc --emit link` commands using cached `rmeta` files as input.
Initially this flag `-Zmetadata-link`, but ultimately I'd expect to
stabilize it as `-Cmetadata-link` (or a better name).
0 commit comments