Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wrapper: add exemplar target files instead of dirs for @@ldpaths@@
Instead of forming LD_LIBRARY_PATH from the dirname of shared libs of our deps, put in the actual shared library path names, instead. Then, in the wrapper, when building up LD_LIBRARY_PATH, use bash $(dirname) to get just the directory component from the resolved $(rlocation) of the shared lib. If multiple shared lib deps exist in the same runfiles directory, it'll just take a single one to avoid repetition in LD_LIBRARY_PATH. Testing: bazel test use_toolchain_test bazel run tool:wrapped_tool /dev/stdout $PWD/foo.txt
- Loading branch information