[bazel] Also add -lrt to OrcTargetProcess for 1b1f1c7786

This commit is contained in:
Benjamin Kramer 2022-07-20 11:28:26 +02:00
parent 309aed3068
commit 439668871a
1 changed files with 8 additions and 0 deletions

View File

@ -2367,6 +2367,14 @@ cc_library(
"include/llvm/ExecutionEngine/Orc/TargetProcess/*.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 = [
":BinaryFormat",
":CodeGen",