Skip to content

Commit 9179f48

Browse files
Veykriltshepang
authored andcommitted
Add {{target}} to header substitutions
1 parent cb69788 commit 9179f48

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/tests/headers.md

+2
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,8 @@ described below:
280280
- `{{build-base}}`: The base directory where the test's output goes. This is
281281
equivalent to `$TEST_BUILD_DIR` for [output normalization].
282282
- Example: `/path/to/rust/build/x86_64-unknown-linux-gnu/test/ui`
283+
- `{{target}}`: The target the test is compiling for
284+
- Example: `x86_64-unknown-linux-gnu`
283285

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

0 commit comments

Comments
 (0)