llvm-capstone/libc/utils/LibcTableGenUtil
Stephen Neuendorffer 1ab46e5cf8 [libc] update LibcTableGenUtil for LLVM_LINK_LLVM_DYLIB
This library is linked into libc-hdrgen, which is compiled with
DISABLE_LLVM_LINK_LLVM_DYLIB.  This option avoids linking with
libLLVM.so when LLVM_LINK_LLVM_DYLIB is specified.  Unfortunately,
this can cause wierd linkage errors where symbols are defined
multiple times, with one definition coming from static linkage
and another definition coming from libLLVM.so.  This is usually
apparent as a link error with options defined multiple times.

This patch adds DISABLE_LLVM_LINK_LLVM_DYLIB to this library, to
get consistent linkage of libc-hdrgen.

Differential Revision: https://reviews.llvm.org/D145839
2023-03-11 09:15:06 -08:00
..
APIIndexer.cpp [libc][NFC] Fix a few compiler warnings. 2022-08-09 22:30:40 +00:00
APIIndexer.h [libc] Use std::optional instead of llvm::Optional (NFC) 2023-01-14 20:22:48 -08:00
CMakeLists.txt [libc] update LibcTableGenUtil for LLVM_LINK_LLVM_DYLIB 2023-03-11 09:15:06 -08:00