Ellis Hoag 5301f4c469
[Sanitizer] Use % patterns in report paths (#141820)
Support `%` patterns in sanitizer report paths, similar to the patterns
supported in IRPGO

4bf67cdf02/compiler-rt/lib/profile/InstrProfilingFile.c (L999-L1017)

* `%%` becomes `%`
* `%H` expands to the environment variable `HOME`
* `%t` expands to the environment variable `TMPDIR`
* `%p` expands to the process ID (PID)

In particular, the `%H` pattern is useful to resolve the home directory
at runtime, which is not possible before this PR.

Also, avoid using `Report()` before the report path has been set.
2025-05-30 07:57:51 -07:00
..

Compiler-RT
================================

This directory and its subdirectories contain source code for the compiler
support routines.

Compiler-RT is open source software. You may freely distribute it under the
terms of the license agreement found in LICENSE.txt.

================================