[Bazel] link backtrace library when building llvm/lib/Support under FreeBSD

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](e158b5634a/llvm/lib/Support/CMakeLists.txt (L39-L46))

Reviewed By: GMNGeoffrey

Differential Revision: https://reviews.llvm.org/D110533
This commit is contained in:
William Muir 2021-10-26 14:23:11 -07:00 committed by Geoffrey Martin-Noble
parent 5db7568a6a
commit 3e94833823
1 changed files with 6 additions and 0 deletions

View File

@ -206,6 +206,12 @@ cc_library(
includes = ["include"],
linkopts = select({
"@bazel_tools//src/conditions:windows": [],
"@bazel_tools//src/conditions:freebsd": [
"-pthread",
"-lexecinfo",
"-ldl",
"-lm",
],
"//conditions:default": [
"-pthread",
"-ldl",