提交 1d5de57c 编写于 作者: X Xiangquan Xiao

Bazel: Add rt target.

上级 8c474fd8
...@@ -62,7 +62,6 @@ cc_library( ...@@ -62,7 +62,6 @@ cc_library(
hdrs = ["cyber.h"], hdrs = ["cyber.h"],
linkopts = [ linkopts = [
"-lprotobuf", "-lprotobuf",
"-lrt",
], ],
deps = [ deps = [
"//cyber:binary", "//cyber:binary",
...@@ -104,6 +103,7 @@ cc_library( ...@@ -104,6 +103,7 @@ cc_library(
"//cyber/transport", "//cyber/transport",
"//cyber/transport:participant", "//cyber/transport:participant",
"//cyber/transport:sub_listener", "//cyber/transport:sub_listener",
"//third_party:rt",
"//third_party:uuid", "//third_party:uuid",
"//third_party/tf2", "//third_party/tf2",
"@fastrtps", "@fastrtps",
......
...@@ -9,8 +9,6 @@ cc_library( ...@@ -9,8 +9,6 @@ cc_library(
linkopts = [ linkopts = [
"-lsnappy", "-lsnappy",
"-lz", "-lz",
"-lsnappy",
"-lrt",
"-ldl", "-ldl",
"-lpthread", "-lpthread",
], ],
...@@ -18,6 +16,7 @@ cc_library( ...@@ -18,6 +16,7 @@ cc_library(
"//cyber/common:log", "//cyber/common:log",
"//external:gflags", "//external:gflags",
"//modules/perception/inference:inference_lib", "//modules/perception/inference:inference_lib",
"//third_party:rt",
"@boost", "@boost",
"@com_google_protobuf//:protobuf", "@com_google_protobuf//:protobuf",
"@cuda", "@cuda",
......
...@@ -4,3 +4,8 @@ cc_library( ...@@ -4,3 +4,8 @@ cc_library(
name = "uuid", name = "uuid",
linkopts = ["-luuid"], linkopts = ["-luuid"],
) )
cc_library(
name = "rt",
linkopts = ["-lrt"],
)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册