about summary refs log tree commit diff
path: root/tests/run-make/artifact-incr-cache/rmake.rs
blob: 670c851e1e0078e375d06d53fdd048c1914b046f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//@ needs-target-std
//
// rustc should be able to emit required files (asm, llvm-*, etc) during incremental
// compilation on the first pass by running the code gen as well as on subsequent runs -
// extracting them from the cache
//
// Fixes: rust-lang/rust#89149
// Fixes: rust-lang/rust#88829
// Also see discussion at
// <https://internals.rust-lang.org/t/interaction-between-incremental-compilation-and-emit/20551>

use run_make_support::rustc;

fn main() {
    for _ in 0..=1 {
        rustc()
            .input("lib.rs")
            .crate_type("lib")
            .emit("obj,asm,dep-info,link,mir,llvm-ir,llvm-bc")
            .incremental("incremental")
            .run();
    }
}