aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/DataExtractor.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2020-02-27 19:23:57 -0800
committerSaleem Abdulrasool <compnerd@compnerd.org>2020-02-27 22:00:30 -0800
commitc3595d1069277b4ab0df49d7139b6f1bbc94f21c (patch)
tree753389e119d28ec84fddf903907792f9fa6d45d8 /llvm/lib/Support/DataExtractor.cpp
parent76128cf624fda0d8e73690f1a57efde78f4197c2 (diff)
downloadllvm-c3595d1069277b4ab0df49d7139b6f1bbc94f21c.zip
llvm-c3595d1069277b4ab0df49d7139b6f1bbc94f21c.tar.gz
llvm-c3595d1069277b4ab0df49d7139b6f1bbc94f21c.tar.bz2
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!
Diffstat (limited to 'llvm/lib/Support/DataExtractor.cpp')
0 files changed, 0 insertions, 0 deletions