Skip to content

Commit 693a95a

Browse files
committed
[Bazel] Add support for lld
This patch adds a Bazel configuration to build lld. That includes a BUILD.bazel file to export the libunwind headers for use by lld. Since the lld target itself requires libxml2 (through WindowsManifest) it's currently disabled on Buildkite and marked manual, but all the libraries build. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D107414
1 parent 597e407 commit 693a95a

File tree

2 files changed

+403
-0
lines changed

2 files changed

+403
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This file is licensed under the Apache License v2.0 with LLVM Exceptions.
2+
# See https://llvm.org/LICENSE.txt for license information.
3+
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4+
5+
package(
6+
default_visibility = ["//visibility:public"],
7+
licenses = ["notice"],
8+
)
9+
10+
# The ld64 linker and lld-macho use the libunwind headers only for the constant
11+
# definitions, in order to parse and convert DWARF to the compact encoding.
12+
cc_library(
13+
name = "unwind_headers_only",
14+
hdrs = [
15+
"include/__libunwind_config.h",
16+
"include/libunwind.h",
17+
"include/mach-o/compact_unwind_encoding.h",
18+
],
19+
strip_include_prefix = "include",
20+
)

0 commit comments

Comments
 (0)