Skip to content

Commit

Permalink
[bazel] Add -lrt on non-darwin/non-windows for 1b1f1c7
Browse files Browse the repository at this point in the history
For shm_open in orc jit.
  • Loading branch information
d0k committed Jul 20, 2022
1 parent 5a4033c commit 24c88c9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
Expand Up @@ -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",
Expand Down

0 comments on commit 24c88c9

Please sign in to comment.