HomePhabricator

ar_to_bc.sh: replace readlink -f with custom relative path resolution

Authored by MaskRay on Apr 1 2019, 9:58 PM.

Description

ar_to_bc.sh: replace readlink -f with custom relative path resolution

llvm-ar is a crunchgen-style executable dispatching to dlltool,ranlib,lib,ar based on argv[0].
In our content-addressable storage, readlink -f resolves paths to some
digest and thus lost the original "llvm-ar" filename.

Replace it with a custom path resolution to fix the problem.

llvm-svn: 357450

Details

Committed
MaskRayApr 1 2019, 9:58 PM
Parents
rG60a8816c2fc8: [compiler-rt][test] Make instrprof-set-dir-mode test tolerant of group ID
Branches
Unknown
Tags
Unknown