Skip to content

Commit bd4f24a

Browse files
committed
[llvm] compile out LLVM_ABI unless building llvm shared lib or dylib
1 parent c1e95b2 commit bd4f24a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/include/llvm/Support/Compiler.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,7 @@
175175
// Marker to add to classes or functions in public headers that should not have
176176
// export macros added to them by the clang tool
177177
#define LLVM_ABI_NOT_EXPORTED
178-
#if defined(LLVM_BUILD_LLVM_DYLIB) || defined(LLVM_BUILD_SHARED_LIBS) || \
179-
defined(LLVM_ENABLE_PLUGINS)
178+
#if defined(LLVM_BUILD_LLVM_DYLIB) || defined(LLVM_BUILD_SHARED_LIBS)
180179
// Some libraries like those for tablegen are linked in to tools that used
181180
// in the build so can't depend on the llvm shared library. If export macros
182181
// were left enabled when building these we would get duplicate or

0 commit comments

Comments
 (0)