Skip to content

Commit

Permalink
Merge pull request redpanda-data#23049 from rockwotj/pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
rockwotj authored Aug 24, 2024
2 parents b7bec96 + da2cf58 commit 9bcf7cf
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 25 deletions.
1 change: 0 additions & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ build:release --config=secure
build:release --copt -mllvm --copt -inline-threshold=2500
build:release --linkopt=-flto

build --@seastar//:openssl=True
build --keep_going

# prevent actions and tests from using the network. anything that needs to
Expand Down
34 changes: 10 additions & 24 deletions bazel/thirdparty/seastar.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ bool_flag(
build_setting_default = False,
)

bool_flag(
name = "openssl",
build_setting_default = False,
)

bool_flag(
name = "sstring",
build_setting_default = True,
Expand Down Expand Up @@ -100,13 +95,6 @@ config_setting(
},
)

config_setting(
name = "use_openssl",
flag_values = {
":openssl": "true",
},
)

config_setting(
name = "use_logger_compile_time_fmt",
flag_values = {
Expand Down Expand Up @@ -292,6 +280,7 @@ cc_library(
"src/net/native-stack.cc",
"src/net/native-stack-impl.hh",
"src/net/net.cc",
"src/net/ossl.cc",
"src/net/packet.cc",
"src/net/posix-stack.cc",
"src/net/proxy.cc",
Expand All @@ -318,10 +307,7 @@ cc_library(
"src/util/short_streams.cc",
"src/util/tmp_file.cc",
"src/websocket/server.cc",
] + select({
":use_openssl": ["src/net/ossl.cc"],
"//conditions:default": ["src/net/tls.cc"],
}),
],
hdrs = [
"include/seastar/core/abort_on_ebadf.hh",
"include/seastar/core/abort_on_expiry.hh",
Expand Down Expand Up @@ -560,7 +546,9 @@ cc_library(
"include/seastar/util/variant_utils.hh",
"include/seastar/websocket/server.hh",
],
copts = select({
copts = [
"-Wno-unused-but-set-variable",
] + select({
":use_stack_guards": ["-fstack-clash-protection"],
"//conditions:default": [],
}),
Expand All @@ -569,6 +557,7 @@ cc_library(
"BOOST_TEST_NO_LIB",
"SEASTAR_API_LEVEL=$(API_LEVEL)",
"SEASTAR_SCHEDULING_GROUPS_COUNT=$(SCHEDULING_GROUPS)",
"SEASTAR_WITH_TLS_OSSL",
] + select({
":use_task_backtrace": ["SEASTAR_TASK_BACKTRACE"],
"//conditions:default": [],
Expand All @@ -578,9 +567,6 @@ cc_library(
}) + select({
":use_logger_compile_time_fmt": ["SEASTAR_LOGGER_COMPILE_TIME_FMT"],
"//conditions:default": [],
}) + select({
":use_openssl": ["SEASTAR_WITH_TLS_OSSL"],
"//conditions:default": [],
}) + select({
":with_debug": ["SEASTAR_DEBUG"],
"//conditions:default": [],
Expand Down Expand Up @@ -634,12 +620,12 @@ cc_library(
"@boost//:filesystem",
"@boost//:lockfree",
"@boost//:program_options",
"@boost//:test.so",
"@boost//:thread",
"@c-ares",
"@fmt",
"@lksctp",
"@lz4",
"@openssl",
"@protobuf",
"@yaml-cpp",
] + select({
Expand All @@ -651,14 +637,12 @@ cc_library(
}) + select({
":use_numactl": ["@numactl"],
"//conditions:default": [],
}) + select({
":use_openssl": ["@openssl"],
"//conditions:default": ["@gnutls"],
}),
)

cc_library(
name = "testing",
testonly = True,
srcs = [
"src/testing/entry_point.cc",
"src/testing/random.cc",
Expand All @@ -685,11 +669,13 @@ cc_library(
],
deps = [
":seastar",
"@boost//:test.so",
],
)

cc_library(
name = "benchmark",
testonly = True,
srcs = [
"tests/perf/linux_perf_event.cc",
"tests/perf/perf_tests.cc",
Expand Down
1 change: 1 addition & 0 deletions src/v/hashing/tests/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ redpanda_cc_btest(
deps = [
"//src/v/hashing:secure",
"@boost//:test",
"@seastar//:testing",
],
)

Expand Down
1 change: 1 addition & 0 deletions src/v/storage/tests/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ redpanda_cc_btest(
"//src/v/serde",
"//src/v/storage:index_state",
"@boost//:test",
"@seastar//:testing",
],
)

Expand Down

0 comments on commit 9bcf7cf

Please sign in to comment.