================ @@ -40,12 +41,9 @@ // in the build so can't depend on the llvm shared library. If export macros // were left enabled when building these we would get duplicate or // missing symbol linker errors on windows. -#if defined(CLANG_BUILD_STATIC) -#define CLANG_ABI -#define CLANG_ABI_EXPORT -#define CLANG_TEMPLATE_ABI -#define CLANG_EXPORT_TEMPLATE -#elif defined(_WIN32) && !defined(__MINGW32__) +#if defined(CLANG_ENABLE_CLANG_EXPORT_ANNOTATIONS) && \ + !defined(CLANG_BUILD_STATIC) ---------------- compnerd wrote:
I think that we should sink the `CLANG_BUILD_STATIC` down into the generated header - there is no value in providing that at a higher level. It just invites unnecessary drift. Why use `CLANG_ENABLE_CLANG_EXPORT_ANNOTATIONS` over say `CLANG_EXPORTS` which matches the way that CMake and VS already handle this? https://github.com/llvm/llvm-project/pull/239750 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
