File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -516,11 +516,12 @@ only running the main `coverage` suite.
516
516
## Building auxiliary crates
517
517
518
518
It is common that some tests require additional auxiliary crates to be compiled.
519
- There are three [ headers] ( headers.md ) to assist with that:
519
+ There are multiple [ headers] ( headers.md ) to assist with that:
520
520
521
521
* ` aux-build `
522
522
* ` aux-crate `
523
523
* ` aux-bin `
524
+ * ` aux-codegen-backend `
524
525
525
526
` aux-build ` will build a separate crate from the named source file.
526
527
The source file should be in a directory called ` auxiliary ` beside the test file.
@@ -549,6 +550,10 @@ This is similar to how Cargo does dependency renaming.
549
550
library. The binary will be available in ` auxiliary/bin ` relative to the working
550
551
directory of the test.
551
552
553
+ ` aux-codegen-backend ` is similar to ` aux-build ` , but will then pass the compiled
554
+ dylib to ` -Zcodegen-backend ` when building the main file. This will only work
555
+ for tests in ` tests/ui-fulldeps ` , since it requires the use of compiler crates.
556
+
552
557
### Auxiliary proc-macro
553
558
554
559
If you want a proc-macro dependency, then there currently is some ceremony
Original file line number Diff line number Diff line change @@ -63,6 +63,8 @@ found in [`header.rs`] from the compiletest source.
63
63
* [ Building auxiliary crates] ( compiletest.md#building-auxiliary-crates )
64
64
* ` aux-build `
65
65
* ` aux-crate `
66
+ * ` aux-bin `
67
+ * ` aux-codegen-backend `
66
68
* [ Pretty-printer] ( compiletest.md#pretty-printer-tests ) headers
67
69
* ` pretty-compare-only `
68
70
* ` pretty-expanded `
You can’t perform that action at this time.
0 commit comments