MASK_PATHS
With this configuration parameter, source file paths recorded by ctc can be controlled.
With artificial or dynamically changing build environments, it can be useful to cut paths, so that every build produces the same artifacts. Paths to source files are present in symbol file, in object files, in the instrumented executable and in data files.
With MASK_PATHS, a list of path anchors can be provided. The path of each source file is shortened when it contains one of these anchors. Only the first matching anchor is applied.
Everything left of the anchor is replaced by A:\ctc_mask\ on Windows
and /ctc_mask/ on Linux and macOS, to keep paths distinguishable by
ctcreport.
MASK_PATHS = MyProject, sourcemasks paths in the following way
| C:\3838\191\MyProject\source\foo.c | A:\ctc_mask\MyProject\source\foo.c |
|
C:\1112\sandbox17\4\YourProject\source\bar.c |
A:\ctc_mask\source\bar.c |