[all-commits] [llvm/llvm-project] 76de2f: CMake: allow overriding CMAKE_CXX_VISIBILITY_PRESET

WenleiHe via All-commits all-commits at lists.llvm.org
Tue Jun 15 15:58:11 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 76de2f4a9c023d06717536ccb089f9959c4ef4bb
      https://github.com/llvm/llvm-project/commit/76de2f4a9c023d06717536ccb089f9959c4ef4bb
  Author: Wenlei He <aktoon at gmail.com>
  Date:   2021-06-15 (Tue, 15 Jun 2021)

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

  Log Message:
  -----------
  CMake: allow overriding CMAKE_CXX_VISIBILITY_PRESET

This allows overriding the `CMAKE_CXX_VISIBILITY_PRESET` on the command line. For example, setting the value to `default` lets PIC LLVM static libraries be converted to DSOs, without the need to rebuild LLVM with BUILD_SHARED_LIBS=ON.

Reviewed By: wenlei

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




More information about the All-commits mailing list