[llvm] Add os select for plugin process on Initialization target to add windows (PR #211276)
David Young via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 22 07:37:13 PDT 2026
https://github.com/youngd007 created https://github.com/llvm/llvm-project/pull/211276
Another small piece of windows build support for LLDB in bazel. Internally at Meta, our buck2 rule for this has a split for mac/linux with PluginProcessPOSIX and windows with PluginProcessWindowsCommon. So this should be a no-op for existing linux & mac builds while setting up a bit more for windows.
I have no bazel build set up locally, so will wait on CI to confirm no regression.
bazel rule creation assisted with claude
>From bdc32c088406eb46a13ff9a376bb20efb6a0d456 Mon Sep 17 00:00:00 2001
From: David Young <davidayoung at meta.com>
Date: Wed, 22 Jul 2026 07:33:26 -0700
Subject: [PATCH] Add os select for plugin process on Initialization target
---
utils/bazel/llvm-project-overlay/lldb/BUILD.bazel | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/utils/bazel/llvm-project-overlay/lldb/BUILD.bazel b/utils/bazel/llvm-project-overlay/lldb/BUILD.bazel
index 546e038fa6ea1..573e49138681b 100644
--- a/utils/bazel/llvm-project-overlay/lldb/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/lldb/BUILD.bazel
@@ -353,9 +353,15 @@ cc_library(
":Utility",
":Version",
"//lldb/source/Plugins:PluginProcessGDBRemote",
- "//lldb/source/Plugins:PluginProcessPOSIX",
"//llvm:Support",
- ],
+ ] + select({
+ "@platforms//os:windows": [
+ "//lldb/source/Plugins:PluginProcessWindowsCommon",
+ ],
+ "//conditions:default": [
+ "//lldb/source/Plugins:PluginProcessPOSIX",
+ ],
+ }),
)
gentbl_cc_library(
More information about the llvm-commits
mailing list