Commit Graph

1 Commits

Author SHA1 Message Date
Hsin-Yi Chen
94154c1bdf Extend header-abi-dumper/linker --root-dir
This commit extends the format of --root-dir to <path>:<replacement>. If
a source path starts with <path>, the prefix is replaced. The build
system can use this option to have the ABI tools replace non-default
OUT_DIR with "out". This commit also allows more than one --root-dir.
When the tool normalizes a source path, the tool finds the longest
matching root dir.

Test: ./header-checker-unittests
Bug: 192157880
Change-Id: Ie77b4f09304e029aa5c2acc6a000c59400913426
2021-07-14 15:23:53 +08:00