Skip to content

Commit 2da6e66

Browse files
committed
Support incremental in compiletest for non-incremental modes.
1 parent 0132f82 commit 2da6e66

38 files changed

+166
-119
lines changed

src/test/codegen-units/partitioning/extern-drop-glue.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
//
22

3-
// We specify -C incremental here because we want to test the partitioning for
3+
// We specify incremental here because we want to test the partitioning for
44
// incremental compilation
55
// We specify opt-level=0 because `drop_in_place` is `Internal` when optimizing
6-
// compile-flags:-Zprint-mono-items=lazy -Cincremental=tmp/partitioning-tests/extern-drop-glue
6+
// incremental
7+
// compile-flags:-Zprint-mono-items=lazy
78
// compile-flags:-Zinline-in-all-cgus -Copt-level=0
89

910
#![allow(dead_code)]

src/test/codegen-units/partitioning/extern-generic.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
//
2-
// We specify -C incremental here because we want to test the partitioning for
2+
// We specify incremental here because we want to test the partitioning for
33
// incremental compilation
4-
// compile-flags:-Zprint-mono-items=eager -Cincremental=tmp/partitioning-tests/extern-generic -Zshare-generics=y
4+
// incremental
5+
// compile-flags:-Zprint-mono-items=eager -Zshare-generics=y
56

67
#![allow(dead_code)]
78
#![crate_type="lib"]

src/test/codegen-units/partitioning/incremental-merging.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
// We specify -C incremental here because we want to test the partitioning for
1+
// We specify incremental here because we want to test the partitioning for
22
// incremental compilation
3-
// compile-flags:-Zprint-mono-items=lazy -Cincremental=tmp/partitioning-tests/incremental-merging
3+
// incremental
4+
// compile-flags:-Zprint-mono-items=lazy
45
// compile-flags:-Ccodegen-units=3
56

67
#![crate_type = "rlib"]

src/test/codegen-units/partitioning/inlining-from-extern-crate.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
//
2-
// We specify -C incremental here because we want to test the partitioning for
2+
// We specify incremental here because we want to test the partitioning for
33
// incremental compilation
4-
// compile-flags:-Zprint-mono-items=lazy -Cincremental=tmp/partitioning-tests/inlining-from-extern-crate
4+
// incremental
5+
// compile-flags:-Zprint-mono-items=lazy
56
// compile-flags:-Zinline-in-all-cgus
67

78
#![crate_type="lib"]

src/test/codegen-units/partitioning/local-drop-glue.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
//
2-
// We specify -C incremental here because we want to test the partitioning for
2+
// We specify incremental here because we want to test the partitioning for
33
// incremental compilation
44
// We specify opt-level=0 because `drop_in_place` is `Internal` when optimizing
5-
// compile-flags:-Zprint-mono-items=lazy -Cincremental=tmp/partitioning-tests/local-drop-glue
5+
// incremental
6+
// compile-flags:-Zprint-mono-items=lazy
67
// compile-flags:-Zinline-in-all-cgus -Copt-level=0
78

89
#![allow(dead_code)]

src/test/codegen-units/partitioning/local-generic.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
// We specify -C incremental here because we want to test the partitioning for
1+
// We specify incremental here because we want to test the partitioning for
22
// incremental compilation
3-
// compile-flags:-Zprint-mono-items=eager -Cincremental=tmp/partitioning-tests/local-generic
3+
// incremental
4+
// compile-flags:-Zprint-mono-items=eager
45

56
#![allow(dead_code)]
67
#![crate_type="lib"]

src/test/codegen-units/partitioning/local-inlining-but-not-all.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
//
2-
// We specify -C incremental here because we want to test the partitioning for
2+
// We specify incremental here because we want to test the partitioning for
33
// incremental compilation
4-
// compile-flags:-Zprint-mono-items=lazy -Cincremental=tmp/partitioning-tests/local-inlining-but-not-all
4+
// incremental
5+
// compile-flags:-Zprint-mono-items=lazy
56
// compile-flags:-Zinline-in-all-cgus=no
67

78
#![allow(dead_code)]

src/test/codegen-units/partitioning/local-inlining.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
//
2-
// We specify -C incremental here because we want to test the partitioning for
2+
// We specify incremental here because we want to test the partitioning for
33
// incremental compilation
4-
// compile-flags:-Zprint-mono-items=lazy -Cincremental=tmp/partitioning-tests/local-inlining
4+
// incremental
5+
// compile-flags:-Zprint-mono-items=lazy
56
// compile-flags:-Zinline-in-all-cgus
67

78
#![allow(dead_code)]

src/test/codegen-units/partitioning/local-transitive-inlining.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
//
2-
// We specify -C incremental here because we want to test the partitioning for
2+
// We specify incremental here because we want to test the partitioning for
33
// incremental compilation
4-
// compile-flags:-Zprint-mono-items=lazy -Cincremental=tmp/partitioning-tests/local-transitive-inlining
4+
// incremental
5+
// compile-flags:-Zprint-mono-items=lazy
56
// compile-flags:-Zinline-in-all-cgus
67

78
#![allow(dead_code)]

src/test/codegen-units/partitioning/methods-are-with-self-type.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
// ignore-test
55

66
//
7-
// We specify -C incremental here because we want to test the partitioning for
7+
// We specify incremental here because we want to test the partitioning for
88
// incremental compilation
9-
// compile-flags:-Zprint-mono-items=lazy -Cincremental=tmp/partitioning-tests/methods-are-with-self-type
9+
// incremental
10+
// compile-flags:-Zprint-mono-items=lazy
1011

1112
#![allow(dead_code)]
1213
#![feature(start)]

0 commit comments

Comments
 (0)