Skip to content

Commit ecfbe3e

Browse files
committed
rustc-dev-guide: document COMPILETEST_HAS_GIT_HASH=1
1 parent 74d823a commit ecfbe3e

File tree

1 file changed

+8
-0
lines changed
  • src/doc/rustc-dev-guide/src/tests

1 file changed

+8
-0
lines changed

src/doc/rustc-dev-guide/src/tests/misc.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,11 @@ fn main() {
3838
.run();
3939
}
4040
```
41+
42+
## `tests/run-make/version-verbose-commit-hash`
43+
44+
This is a special `run-make` test that checks if git hash info is available with
45+
`rustc -vV` and `rustdoc -vV`. It must not trust bootstrap's reporting of
46+
whether git hash is available, as bootstrap may be bugged. Instead, this test
47+
directly checks for `COMPILETEST_HAS_GIT_HASH=1` being set in CI, otherwise this
48+
test is a no-op locally.

0 commit comments

Comments
 (0)