[bazel] Add -lrt on non-darwin/non-windows for 1b1f1c7786

For shm_open in orc jit.
This commit is contained in:
Benjamin Kramer 2022-07-20 11:21:53 +02:00
parent 5a4033c367
commit 24c88c90a8
1 changed files with 8 additions and 0 deletions

View File

@ -2308,6 +2308,14 @@ cc_library(
"include/llvm-c/OrcEE.h",
],
copts = llvm_copts,
linkopts = select({
"@bazel_tools//src/conditions:windows": [],
"@bazel_tools//src/conditions:freebsd": [],
"@bazel_tools//src/conditions:darwin": [],
"//conditions:default": [
"-lrt",
],
}),
deps = [
":BitReader",
":BitWriter",