[all-commits] [llvm/llvm-project] c3595d: build: process the libxml2 library path for embedding
Saleem Abdulrasool via All-commits
all-commits at lists.llvm.org
Thu Feb 27 22:00:54 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: c3595d1069277b4ab0df49d7139b6f1bbc94f21c
https://github.com/llvm/llvm-project/commit/c3595d1069277b4ab0df49d7139b6f1bbc94f21c
Author: Saleem Abdulrasool <compnerd at compnerd.org>
Date: 2020-02-27 (Thu, 27 Feb 2020)
Changed paths:
M llvm/lib/WindowsManifest/CMakeLists.txt
Log Message:
-----------
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!
More information about the All-commits
mailing list