Polish Bazel build scripts (#6424)

* Polish Bazel build scripts

* Remove glog references from streaming_logging.cc

* Move out COPTS and reference them

* Disable streaming on Windows

* Remove -fno-gnu-unique
This commit is contained in:
mehrdadn
2019-12-17 02:38:36 -08:00
committed by Philipp Moritz
parent 9d6e03aba0
commit 7a24144bfd
4 changed files with 46 additions and 50 deletions
+10
View File
@@ -3,6 +3,7 @@
load("@com_github_grpc_grpc//bazel:cython_library.bzl", "pyx_library")
load("@rules_proto_grpc//python:defs.bzl", "python_proto_compile")
load("//bazel:ray.bzl", "COPTS")
proto_library(
name = "streaming_proto",
@@ -30,6 +31,7 @@ cc_proto_library(
# be linked into streaming libs by dynamic linker. See bazel rule `//:_raylet`
cc_binary(
name = "ray_util.so",
copts = COPTS,
linkshared = 1,
visibility = ["//visibility:public"],
deps = ["//:ray_util"],
@@ -37,6 +39,7 @@ cc_binary(
cc_binary(
name = "ray_common.so",
copts = COPTS,
linkshared = 1,
visibility = ["//visibility:public"],
deps = ["//:ray_common"],
@@ -44,6 +47,7 @@ cc_binary(
cc_binary(
name = "core_worker_lib.so",
copts = COPTS,
linkshared = 1,
deps = ["//:core_worker_lib"],
)
@@ -56,6 +60,7 @@ cc_library(
hdrs = glob([
"src/util/*.h",
]),
copts = COPTS,
includes = [
"src",
],
@@ -75,6 +80,7 @@ cc_library(
hdrs = glob([
"src/config/*.h",
]),
copts = COPTS,
deps = [
"ray_common.so",
":streaming_cc_proto",
@@ -90,6 +96,7 @@ cc_library(
hdrs = glob([
"src/message/*.h",
]),
copts = COPTS,
deps = [
"ray_common.so",
":streaming_config",
@@ -105,6 +112,7 @@ cc_library(
hdrs = glob([
"src/queue/*.h",
]),
copts = COPTS,
deps = [
"core_worker_lib.so",
"ray_common.so",
@@ -128,6 +136,7 @@ cc_library(
"src/queue/*.h",
"src/test/*.h",
]),
copts = COPTS,
includes = ["src"],
visibility = ["//visibility:public"],
deps = [
@@ -154,6 +163,7 @@ cc_binary(
srcs = glob(["src/test/*.h"]) + [
"src/test/mock_actor.cc",
],
copts = COPTS,
includes = [
"streaming/src/test",
],
-3
View File
@@ -2,9 +2,6 @@
#include <sys/types.h>
#include <unistd.h>
#include "glog/log_severity.h"
#include "glog/logging.h"
#include "streaming_logging.h"
namespace ray {