Skip to content

Commit ee3f509

Browse files
committed
[bazel] Turn on LLVM_ENABLE_PLUGINS on posix
Since #141650, `LLVM_ABI inline` has had different linkage regarding to LLVM_ENABLE_PLUGINS. This was introduced in 8830e38 (llvmorg-21-init-14426-g8830e3802a92) but reverted in #143419 due to breakage of msvc build.
1 parent 59e4d0b commit ee3f509

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

utils/bazel/llvm-project-overlay/llvm/config.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ posix_defines = [
3232
"BACKTRACE_HEADER=<execinfo.h>",
3333
r'LTDL_SHLIB_EXT=\".so\"',
3434
r'LLVM_PLUGIN_EXT=\".so\"',
35+
"LLVM_ENABLE_PLUGINS=1",
3536
"LLVM_ENABLE_THREADS=1",
3637
"HAVE_DEREGISTER_FRAME=1",
3738
"HAVE_LIBPTHREAD=1",

utils/bazel/llvm-project-overlay/llvm/include/llvm/Config/llvm-config.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@
124124
/* Define to 1 if you have the DIA SDK installed, and to 0 if you don't. */
125125
#define LLVM_ENABLE_DIA_SDK 0
126126

127+
/* Define if plugins enabled */
128+
/* LLVM_ENABLE_PLUGINS defined in Bazel */
129+
127130
/* Define if building LLVM with LLVM_ENABLE_TELEMETRY */
128131
#define LLVM_ENABLE_TELEMETRY 1
129132

0 commit comments

Comments
 (0)