From 4857a28b439c65442d89e971e9dc9f6c037496b3 Mon Sep 17 00:00:00 2001 From: Andy Aylward Date: Wed, 21 Jan 2026 23:31:52 -0500 Subject: [PATCH] [BAZEL] Add linkstatic = True to http_client_curl --- .bazelrc | 6 +++--- .bcr/presubmit.yml | 6 +++--- MODULE.bazel | 1 + ext/src/http/client/curl/BUILD | 1 + 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.bazelrc b/.bazelrc index 57cd0a2fa0..9b87c5283a 100644 --- a/.bazelrc +++ b/.bazelrc @@ -17,9 +17,9 @@ build --copt -DGRPC_BAZEL_BUILD build:windows --dynamic_mode=off # Set minimum supported C++ version -build:macos --host_cxxopt=-std=c++14 --cxxopt=-std=c++14 -build:linux --host_cxxopt=-std=c++14 --cxxopt=-std=c++14 -build:windows --host_cxxopt=/std:c++14 --cxxopt=/std:c++14 +build:macos --host_cxxopt=-std=c++17 --cxxopt=-std=c++17 +build:linux --host_cxxopt=-std=c++17 --cxxopt=-std=c++17 +build:windows --host_cxxopt=/std:c++17 --cxxopt=/std:c++17 # --config=asan : Address Sanitizer. common:asan --copt -DADDRESS_SANITIZER diff --git a/.bcr/presubmit.yml b/.bcr/presubmit.yml index b581b48d42..4bc27b5d14 100644 --- a/.bcr/presubmit.yml +++ b/.bcr/presubmit.yml @@ -2,13 +2,13 @@ # SPDX-License-Identifier: Apache-2.0 matrix: platform: ["debian10", "macos", "ubuntu2004", "windows"] - bazel: ["7.x", "8.x", "9.*"] + bazel: ["7.x", "8.x", "9.x"] tasks: verify_targets: platform: ${{ platform }} bazel: ${{ bazel }} build_flags: - - '--cxxopt=-std=c++14' - - '--host_cxxopt=-std=c++14' + - '--cxxopt=-std=c++17' + - '--host_cxxopt=-std=c++17' build_targets: - '@opentelemetry-cpp//api' diff --git a/MODULE.bazel b/MODULE.bazel index 75ec4371cd..18dfdc02c5 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -20,6 +20,7 @@ bazel_dep(name = "prometheus-cpp", version = "1.3.0", repo_name = "com_github_ju bazel_dep(name = "protobuf", version = "29.0", repo_name = "com_google_protobuf") bazel_dep(name = "rapidyaml", version = "0.9.0") bazel_dep(name = "rules_cc", version = "0.2.9") +bazel_dep(name = "rules_foreign_cc", version = "0.15.1") bazel_dep(name = "rules_proto", version = "7.0.2") bazel_dep(name = "zlib", version = "1.3.1.bcr.5") diff --git a/ext/src/http/client/curl/BUILD b/ext/src/http/client/curl/BUILD index 9d2f6f7637..b5e222bdb5 100644 --- a/ext/src/http/client/curl/BUILD +++ b/ext/src/http/client/curl/BUILD @@ -22,6 +22,7 @@ cc_library( ], "//conditions:default": [], }), + linkstatic = True, deps = [ "//api", "//ext:headers",