Support incremental in compiletest for non-incremental modes.

This commit is contained in:
Eric Huss 2021-09-19 09:57:19 -07:00
parent 0132f8258a
commit 2da6e66948
38 changed files with 179 additions and 132 deletions

View file

@ -1,9 +1,10 @@
//
// We specify -C incremental here because we want to test the partitioning for
// We specify incremental here because we want to test the partitioning for
// incremental compilation
// We specify opt-level=0 because `drop_in_place` is `Internal` when optimizing
// compile-flags:-Zprint-mono-items=lazy -Cincremental=tmp/partitioning-tests/extern-drop-glue
// incremental
// compile-flags:-Zprint-mono-items=lazy
// compile-flags:-Zinline-in-all-cgus -Copt-level=0
#![allow(dead_code)]

View file

@ -1,7 +1,8 @@
//
// We specify -C incremental here because we want to test the partitioning for
// We specify incremental here because we want to test the partitioning for
// incremental compilation
// compile-flags:-Zprint-mono-items=eager -Cincremental=tmp/partitioning-tests/extern-generic -Zshare-generics=y
// incremental
// compile-flags:-Zprint-mono-items=eager -Zshare-generics=y
#![allow(dead_code)]
#![crate_type="lib"]

View file

@ -1,6 +1,7 @@
// We specify -C incremental here because we want to test the partitioning for
// We specify incremental here because we want to test the partitioning for
// incremental compilation
// compile-flags:-Zprint-mono-items=lazy -Cincremental=tmp/partitioning-tests/incremental-merging
// incremental
// compile-flags:-Zprint-mono-items=lazy
// compile-flags:-Ccodegen-units=3
#![crate_type = "rlib"]

View file

@ -1,7 +1,8 @@
//
// We specify -C incremental here because we want to test the partitioning for
// We specify incremental here because we want to test the partitioning for
// incremental compilation
// compile-flags:-Zprint-mono-items=lazy -Cincremental=tmp/partitioning-tests/inlining-from-extern-crate
// incremental
// compile-flags:-Zprint-mono-items=lazy
// compile-flags:-Zinline-in-all-cgus
#![crate_type="lib"]

View file

@ -1,8 +1,9 @@
//
// We specify -C incremental here because we want to test the partitioning for
// We specify incremental here because we want to test the partitioning for
// incremental compilation
// We specify opt-level=0 because `drop_in_place` is `Internal` when optimizing
// compile-flags:-Zprint-mono-items=lazy -Cincremental=tmp/partitioning-tests/local-drop-glue
// incremental
// compile-flags:-Zprint-mono-items=lazy
// compile-flags:-Zinline-in-all-cgus -Copt-level=0
#![allow(dead_code)]

View file

@ -1,6 +1,7 @@
// We specify -C incremental here because we want to test the partitioning for
// We specify incremental here because we want to test the partitioning for
// incremental compilation
// compile-flags:-Zprint-mono-items=eager -Cincremental=tmp/partitioning-tests/local-generic
// incremental
// compile-flags:-Zprint-mono-items=eager
#![allow(dead_code)]
#![crate_type="lib"]

View file

@ -1,7 +1,8 @@
//
// We specify -C incremental here because we want to test the partitioning for
// We specify incremental here because we want to test the partitioning for
// incremental compilation
// compile-flags:-Zprint-mono-items=lazy -Cincremental=tmp/partitioning-tests/local-inlining-but-not-all
// incremental
// compile-flags:-Zprint-mono-items=lazy
// compile-flags:-Zinline-in-all-cgus=no
#![allow(dead_code)]

View file

@ -1,7 +1,8 @@
//
// We specify -C incremental here because we want to test the partitioning for
// We specify incremental here because we want to test the partitioning for
// incremental compilation
// compile-flags:-Zprint-mono-items=lazy -Cincremental=tmp/partitioning-tests/local-inlining
// incremental
// compile-flags:-Zprint-mono-items=lazy
// compile-flags:-Zinline-in-all-cgus
#![allow(dead_code)]

View file

@ -1,7 +1,8 @@
//
// We specify -C incremental here because we want to test the partitioning for
// We specify incremental here because we want to test the partitioning for
// incremental compilation
// compile-flags:-Zprint-mono-items=lazy -Cincremental=tmp/partitioning-tests/local-transitive-inlining
// incremental
// compile-flags:-Zprint-mono-items=lazy
// compile-flags:-Zinline-in-all-cgus
#![allow(dead_code)]

View file

@ -4,9 +4,10 @@
// ignore-test
//
// We specify -C incremental here because we want to test the partitioning for
// We specify incremental here because we want to test the partitioning for
// incremental compilation
// compile-flags:-Zprint-mono-items=lazy -Cincremental=tmp/partitioning-tests/methods-are-with-self-type
// incremental
// compile-flags:-Zprint-mono-items=lazy
#![allow(dead_code)]
#![feature(start)]

View file

@ -1,6 +1,7 @@
// We specify -C incremental here because we want to test the partitioning for
// We specify incremental here because we want to test the partitioning for
// incremental compilation
// compile-flags:-Zprint-mono-items=eager -Cincremental=tmp/partitioning-tests/regular-modules
// incremental
// compile-flags:-Zprint-mono-items=eager
#![allow(dead_code)]
#![crate_type="lib"]

View file

@ -2,7 +2,8 @@
// no-prefer-dynamic
// NOTE: We always compile this test with -Copt-level=0 because higher opt-levels
// prevent drop-glue from participating in share-generics.
// compile-flags:-Zprint-mono-items=eager -Zshare-generics=yes -Cincremental=tmp/partitioning-tests/shared-generics-exe -Copt-level=0
// incremental
// compile-flags:-Zprint-mono-items=eager -Zshare-generics=yes -Copt-level=0
#![crate_type="rlib"]

View file

@ -1,6 +1,7 @@
// We specify -C incremental here because we want to test the partitioning for
// We specify incremental here because we want to test the partitioning for
// incremental compilation
// compile-flags:-Zprint-mono-items=lazy -Cincremental=tmp/partitioning-tests/statics
// incremental
// compile-flags:-Zprint-mono-items=lazy
#![crate_type="rlib"]

View file

@ -1,8 +1,9 @@
//
// We specify -C incremental here because we want to test the partitioning for
// We specify incremental here because we want to test the partitioning for
// incremental compilation
// compile-flags:-Zprint-mono-items=lazy -Cincremental=tmp/partitioning-tests/vtable-through-const
// incremental
// compile-flags:-Zprint-mono-items=lazy
// compile-flags:-Zinline-in-all-cgus
// This test case makes sure, that references made through constants are