[clang] [Clang] Add explicit visibility symbol macros (PR #108276)

Saleem Abdulrasool via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 11 12:25:39 PDT 2024


================
@@ -108,6 +108,10 @@ macro(add_clang_library name)
   endif()
   llvm_add_library(${name} ${LIBTYPE} ${ARG_UNPARSED_ARGUMENTS} ${srcs})
 
+  if(NOT ARG_SHARED AND NOT ARG_STATIC)
+    target_compile_definitions("obj.${name}" PRIVATE CLANG_EXPORTS)
----------------
compnerd wrote:

Why is this being added?

https://github.com/llvm/llvm-project/pull/108276


More information about the cfe-commits mailing list