[all-commits] [llvm/llvm-project] 0f24a4: [llvm-config] Make llvm-config --system-libs obey ...

Kyle Huey via All-commits all-commits at lists.llvm.org
Wed Jun 26 11:16:50 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0f24a462386409c1d907aefb9d8a58481cb71933
      https://github.com/llvm/llvm-project/commit/0f24a462386409c1d907aefb9d8a58481cb71933
  Author: Kyle Huey <khuey at kylehuey.com>
  Date:   2024-06-26 (Wed, 26 Jun 2024)

  Changed paths:
    M llvm/lib/Support/CMakeLists.txt

  Log Message:
  -----------
  [llvm-config] Make llvm-config --system-libs obey LLVM_USE_STATIC_ZSTD (#93754)

LLVM's build system does the right thing but LLVM_SYSTEM_LIBS ends up
containing the shared library. Emit the static library instead when
appropriate.

With LLVM_USE_STATIC_ZSTD, before:

khuey at zhadum:~/dev/llvm-project/build$ ./bin/llvm-config --system-libs
-lrt -ldl -lm -lz -lzstd -lxml2

after:

khuey at zhadum:~/dev/llvm-project/build$ ./bin/llvm-config --system-libs
-lrt -ldl -lm -lz /usr/local/lib/libzstd.a -lxml2



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list