[all-commits] [llvm/llvm-project] df239a: clang: Add a cmake toggle to disable libclang's li...

Nico Weber via All-commits all-commits at lists.llvm.org
Wed Oct 26 10:34:39 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: df239a6c17fa51274e38f185e72ac02c2f8fb914
      https://github.com/llvm/llvm-project/commit/df239a6c17fa51274e38f185e72ac02c2f8fb914
  Author: Nico Weber <thakis at chromium.org>
  Date:   2022-10-26 (Wed, 26 Oct 2022)

  Changed paths:
    M clang/CMakeLists.txt

  Log Message:
  -----------
  clang: Add a cmake toggle to disable libclang's libxml2 dependency

By default, libclang will still depend on libxml2 according to
LLVM_ENABLE_LIBXML2, but with this it's possible to make libclang
not depend on libxml2 even though LLVM does.

The motivation is that libclang uses a bigger API surface of libxml2
than LLVM, and we're statically linking a very minimal build of
libxml2 in our LLVM/clang distribution.

Differential Revision: https://reviews.llvm.org/D136700




More information about the All-commits mailing list