Skip to content

Commit 4857a28

Browse files
committed
[BAZEL] Add linkstatic = True to http_client_curl
1 parent 225d4a7 commit 4857a28

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

.bazelrc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ build --copt -DGRPC_BAZEL_BUILD
1717
build:windows --dynamic_mode=off
1818

1919
# Set minimum supported C++ version
20-
build:macos --host_cxxopt=-std=c++14 --cxxopt=-std=c++14
21-
build:linux --host_cxxopt=-std=c++14 --cxxopt=-std=c++14
22-
build:windows --host_cxxopt=/std:c++14 --cxxopt=/std:c++14
20+
build:macos --host_cxxopt=-std=c++17 --cxxopt=-std=c++17
21+
build:linux --host_cxxopt=-std=c++17 --cxxopt=-std=c++17
22+
build:windows --host_cxxopt=/std:c++17 --cxxopt=/std:c++17
2323

2424
# --config=asan : Address Sanitizer.
2525
common:asan --copt -DADDRESS_SANITIZER

.bcr/presubmit.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
# SPDX-License-Identifier: Apache-2.0
33
matrix:
44
platform: ["debian10", "macos", "ubuntu2004", "windows"]
5-
bazel: ["7.x", "8.x", "9.*"]
5+
bazel: ["7.x", "8.x", "9.x"]
66
tasks:
77
verify_targets:
88
platform: ${{ platform }}
99
bazel: ${{ bazel }}
1010
build_flags:
11-
- '--cxxopt=-std=c++14'
12-
- '--host_cxxopt=-std=c++14'
11+
- '--cxxopt=-std=c++17'
12+
- '--host_cxxopt=-std=c++17'
1313
build_targets:
1414
- '@opentelemetry-cpp//api'

MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ bazel_dep(name = "prometheus-cpp", version = "1.3.0", repo_name = "com_github_ju
2020
bazel_dep(name = "protobuf", version = "29.0", repo_name = "com_google_protobuf")
2121
bazel_dep(name = "rapidyaml", version = "0.9.0")
2222
bazel_dep(name = "rules_cc", version = "0.2.9")
23+
bazel_dep(name = "rules_foreign_cc", version = "0.15.1")
2324
bazel_dep(name = "rules_proto", version = "7.0.2")
2425
bazel_dep(name = "zlib", version = "1.3.1.bcr.5")
2526

ext/src/http/client/curl/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ cc_library(
2222
],
2323
"//conditions:default": [],
2424
}),
25+
linkstatic = True,
2526
deps = [
2627
"//api",
2728
"//ext:headers",

0 commit comments

Comments
 (0)