diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2020-02-27 19:23:57 -0800 |
---|---|---|
committer | Hans Wennborg <hans@chromium.org> | 2020-02-28 12:05:53 +0100 |
commit | 73c53e612aa125a24eb2c75241b2ebbd560b85c7 (patch) | |
tree | bab7a7e7cdb8a92df14e74612ec0ad2914768863 /llvm/utils/gn | |
parent | cd0926d087a85c5ee1222ca80980b4440214a822 (diff) | |
download | bcm5719-llvm-73c53e612aa125a24eb2c75241b2ebbd560b85c7.tar.gz bcm5719-llvm-73c53e612aa125a24eb2c75241b2ebbd560b85c7.zip |
build: process the libxml2 library path for embedding
Process the path for libxml2 before embedding that into the command line
that is generated in `llvm-config`. Each element in the path is being
given a `-l` unconditionally which should not be the case for absolute
paths. Since the library path may be absolute or not, just apply some
CMake pre-processing when generating the path.
Before:
```
/usr/lib/x86_64-linux-gnu/libz.so -lrt -ldl -ltinfo -lpthread -lm /usr/lib/x86_64-linux-gnu/libxml2.so
```
After:
```
/usr/lib/x86_64-linux-gnu/libz.so -lrt -ldl -ltinfo -lpthread -lm -lxml2
```
Resolves PR44179!
(cherry picked from commit c3595d1069277b4ab0df49d7139b6f1bbc94f21c)
Diffstat (limited to 'llvm/utils/gn')
0 files changed, 0 insertions, 0 deletions