Skip to content

Commit 3d6abb0

Browse files
committed
Docs for {{sysroot-base}} and {{target-linker}}
1 parent 13ae2e9 commit 3d6abb0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/tests/headers.md

+5
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,11 @@ described below:
283283
- `{{build-base}}`: The base directory where the test's output goes. This is
284284
equivalent to `$TEST_BUILD_DIR` for [output normalization].
285285
- Example: `/path/to/rust/build/x86_64-unknown-linux-gnu/test/ui`
286+
- `{{sysroot-base}}`: Sysroot directory for the rustc used to build the test.
287+
- Mainly intended for `ui-fulldeps` tests that run the compiler via API.
288+
- `{{target-linker}}`: Linker that would be passed to `-Clinker` for this test,
289+
or blank if no linker override is active.
290+
- Mainly intended for `ui-fulldeps` tests that run the compiler via API.
286291

287292
See [`tests/ui/commandline-argfile.rs`](https://github.com/rust-lang/rust/blob/master/tests/ui/commandline-argfile.rs)
288293
for an example of a test that uses this substitution.

0 commit comments

Comments
 (0)