[llvm] [lldb][bazel] Add Windows cross-compilation support to LLDB Bazel overlay (PR #201173)
Keith Smiley via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 2 11:47:21 PDT 2026
================
@@ -229,6 +245,10 @@ cc_library(
"source/API/**/*.h",
]),
hdrs = glob(["include/lldb/API/**/*.h"]) + [":lldb-sbapi-dwarf-enums"],
+ defines = select({
+ "@platforms//os:windows": ["LLDB_IN_LIBLLDB"],
+ "//conditions:default": [],
+ }),
----------------
keith wrote:
in cmake this is a private define, should it be for bazel too? https://github.com/llvm/llvm-project/blob/f3dcf16115f862f6fa5ea8e520b371f7e57a9c3d/lldb/source/API/CMakeLists.txt#L160
https://github.com/llvm/llvm-project/pull/201173
More information about the llvm-commits
mailing list