[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 8830e3802a (llvmorg-21-init-14426-g8830e3802a92)
but reverted in #143419 due to breakage of msvc build.
This commit is contained in:
NAKAMURA Takumi
2025-06-10 21:02:33 +09:00
parent 59e4d0b34d
commit ee3f50939d
2 changed files with 4 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ posix_defines = [
"BACKTRACE_HEADER=<execinfo.h>",
r'LTDL_SHLIB_EXT=\".so\"',
r'LLVM_PLUGIN_EXT=\".so\"',
"LLVM_ENABLE_PLUGINS=1",
"LLVM_ENABLE_THREADS=1",
"HAVE_DEREGISTER_FRAME=1",
"HAVE_LIBPTHREAD=1",

View File

@@ -124,6 +124,9 @@
/* Define to 1 if you have the DIA SDK installed, and to 0 if you don't. */
#define LLVM_ENABLE_DIA_SDK 0
/* Define if plugins enabled */
/* LLVM_ENABLE_PLUGINS defined in Bazel */
/* Define if building LLVM with LLVM_ENABLE_TELEMETRY */
#define LLVM_ENABLE_TELEMETRY 1