Skip to content

Commit

Permalink
Add {{target}} to header substitutions
Browse files Browse the repository at this point in the history
  • Loading branch information
Veykril authored and tshepang committed Jun 12, 2024
1 parent cb69788 commit 9179f48
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tests/headers.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,8 @@ described below:
- `{{build-base}}`: The base directory where the test's output goes. This is
equivalent to `$TEST_BUILD_DIR` for [output normalization].
- Example: `/path/to/rust/build/x86_64-unknown-linux-gnu/test/ui`
- `{{target}}`: The target the test is compiling for
- Example: `x86_64-unknown-linux-gnu`

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

0 comments on commit 9179f48

Please sign in to comment.