diff options
| author | 2017-03-27 16:53:38 -0700 | |
|---|---|---|
| committer | 2017-03-27 16:58:43 -0700 | |
| commit | 253cab89eec2dd2f8172811f1e5d8ba3055f2660 (patch) | |
| tree | e511cb4bb1e47f9d81e45491c9678ac0d2731f3a /python/python.go | |
| parent | e7ee3c7bc233e6f87830ac6b795f3777382d476b (diff) | |
Fix absolute paths in clang debug output
As of the latest clang python wrapper, clang is being executed with an
absolute path. That means that clang-provided headers are written with
absolute paths in the debug info, making the builds non-reproducible
(especially with ccache).
So keep our current PWD=/proc/self/pwd -fdebug-prefix-map=/proc/self/cwd=,
but add a new -fdebug-prefix-map=$PWD/= to rewrite these absolute paths.
Bug: 36463318
Test: m -j libc adb; grep for path names
Test: spot check objdump -W before/after, see only expected diffs.
Change-Id: Ic2cdfca051d3c38b753fd5c1fcbeaca8bafc29ae
Diffstat (limited to 'python/python.go')
0 files changed, 0 insertions, 0 deletions