================
@@ -33,41 +33,38 @@
 /// is used where a symbol must be exported by the defining library but must 
not
 /// be imported by consumers.
 #ifndef CLANG_ABI_GENERATING_ANNOTATIONS
+
 // Marker to add to classes or functions in public headers that should not have
 // export macros added to them by the clang tool
 #define CLANG_ABI_NOT_EXPORTED
-// Some libraries like those for tablegen are linked in to tools that used
-// 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)
----------------
Steelskin wrote:

No because they gate different things.

`LLVM_BUILD_STATIC` is an override to disable the LLVM annnotations. 
`CLANG_BUILD_STATIC` does the same thing for the `libclang-cpp` target, but it 
is currently inert. This is because the annotations for Clang are incomplete 
and not functional in practice. We do not want to have this opt-out for Clang, 
which should only have export and import once #238871 is complete.

Note that we also want to remove `LLVM_BUILD_STATIC` as a follow-up, this is 
tracked in #145406. For clang, it's a much smaller target with fewer users so 
it should be much simpler to not have this stop-gap override.

https://github.com/llvm/llvm-project/pull/239750
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to