[all-commits] [llvm/llvm-project] 73c53e: build: process the libxml2 library path for embedding

Saleem Abdulrasool via All-commits all-commits at lists.llvm.org
Fri Feb 28 03:07:59 PST 2020


  Branch: refs/heads/release/10.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 73c53e612aa125a24eb2c75241b2ebbd560b85c7
      https://github.com/llvm/llvm-project/commit/73c53e612aa125a24eb2c75241b2ebbd560b85c7
  Author: Saleem Abdulrasool <compnerd at compnerd.org>
  Date:   2020-02-28 (Fri, 28 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!

(cherry picked from commit c3595d1069277b4ab0df49d7139b6f1bbc94f21c)




More information about the All-commits mailing list