[PATCH] D110533: [Bazel] link backtrace library when building llvm/lib/Support under FreeBSD
William Muir via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 27 04:47:28 PDT 2021
wamuir created this revision.
Herald added subscribers: krytarowski, arichardson, emaste.
wamuir requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Links the backtrace library which is required under FreeBSD when building llvm/lib/Support. This library is similarly linked by CMake on BSD builds at llvm/lib/Support/CMakeLists.txt <https://github.com/llvm/llvm-project/blob/e158b5634aa67ea3039a62c3d8bda79b77b3b21c/llvm/lib/Support/CMakeLists.txt#L39-L46>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D110533
Files:
utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
Index: utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
===================================================================
--- utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
+++ utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
@@ -205,6 +205,12 @@
includes = ["include"],
linkopts = select({
"@bazel_tools//src/conditions:windows": [],
+ "@bazel_tools//src/conditions:freebsd": [
+ "-pthread",
+ "-lexecinfo",
+ "-ldl",
+ "-lm",
+ ],
"//conditions:default": [
"-pthread",
"-ldl",
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110533.375205.patch
Type: text/x-patch
Size: 598 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210927/daba0aea/attachment.bin>
More information about the llvm-commits
mailing list