about summary refs log tree commit diff
path: root/src/test/ui/thinlto
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2019-04-15 08:26:08 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2019-04-30 08:51:57 +1000
commit7bcb0cffb61d5e1e4fbe08a51d92883556daed04 (patch)
tree5967374e659ac96d365d8d3b381af68ccea38d53 /src/test/ui/thinlto
parent91d5b764ea1e717641b146d5c3169058a18f3919 (diff)
downloadrust-7bcb0cffb61d5e1e4fbe08a51d92883556daed04.tar.gz
rust-7bcb0cffb61d5e1e4fbe08a51d92883556daed04.zip
In JSON output, emit a directive after metadata is generated.
To implement pipelining, Cargo needs to know when metadata generation is
finished. This commit adds code to do that. Unfortunately, metadata file
writing currently occurs very late during compilation, so pipelining
won't produce a speed-up. Moving metadata file writing earlier will be a
follow-up.

The change involves splitting the existing `Emitter::emit` method in
two: `Emitter::emit_diagnostic` and `Emitter::emit_directive`.

The JSON directives look like this:
```
{"directive":"metadata file written: liba.rmeta"}
```
The functionality is behind the `-Z emit-directives` option, and also
requires `--error-format=json`.
Diffstat (limited to 'src/test/ui/thinlto')
0 files changed, 0 insertions, 0 deletions