[PATCH] D48459: Respect CMAKE_SYSROOT and CMAKE_CROSSCOMPILING when searching for libxml2.

Petr Hosek via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 26 20:35:18 PDT 2018


phosek added inline comments.


================
Comment at: CMakeLists.txt:191
+# are cross-compiling.
+if(NOT CMAKE_SYSROOT AND NOT CMAKE_CROSSCOMPILING AND NOT LLVM_USE_SANITIZER MATCHES "Memory.*")
   set (LIBXML2_FOUND 0)
----------------
This isn't going to cause a problem for us since we always build LLVM against explicit sysroot even building for host, but we would still like to link against libxml2, except it should come from our sysroot rather than host.


Repository:
  rC Clang

https://reviews.llvm.org/D48459





More information about the cfe-commits mailing list