Skip to content

Commit 7231360

Browse files
committed
minor cleanup, removed some older bazel code
1 parent ceed911 commit 7231360

File tree

15 files changed

+16
-51
lines changed

15 files changed

+16
-51
lines changed

api/BUILD

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,20 @@ load("//bazel:otel_cc.bzl", "otel_cc_library")
77
package(default_visibility = ["//visibility:public"])
88

99
CPP_STDLIBS = [
10-
"none",
11-
"best",
12-
"2014",
1310
"2017",
1411
"2020",
1512
"2023",
1613
]
1714

1815
string_flag(
1916
name = "with_cxx_stdlib",
20-
build_setting_default = "best",
17+
build_setting_default = "2017",
2118
values = CPP_STDLIBS,
2219
)
2320

2421
otel_cc_library(
2522
name = "api",
2623
defines = select({
27-
":set_cxx_stdlib_none": [],
28-
### automatic selection
29-
":set_cxx_stdlib_best": ["OPENTELEMETRY_STL_VERSION=(__cplusplus/100)"],
30-
# See https://learn.microsoft.com/en-us/cpp/build/reference/zc-cplusplus
31-
":set_cxx_stdlib_best_and_msvc": ["OPENTELEMETRY_STL_VERSION=(_MSVC_LANG/100)"],
32-
### manual selection
33-
":set_cxx_stdlib_2014": ["OPENTELEMETRY_STL_VERSION=2014"],
3424
":set_cxx_stdlib_2017": ["OPENTELEMETRY_STL_VERSION=2017"],
3525
":set_cxx_stdlib_2020": ["OPENTELEMETRY_STL_VERSION=2020"],
3626
":set_cxx_stdlib_2023": ["OPENTELEMETRY_STL_VERSION=2023"],
@@ -71,15 +61,9 @@ filegroup(
7161
},
7262
) for v in CPP_STDLIBS]
7363

74-
config_setting(
75-
name = "set_cxx_stdlib_best_and_msvc",
76-
constraint_values = ["@bazel_tools//tools/cpp:msvc"],
77-
flag_values = {":with_cxx_stdlib": "best"},
78-
)
79-
8064
int_flag(
8165
name = "abi_version_no",
82-
build_setting_default = 1,
66+
build_setting_default = 2,
8367
)
8468

8569
config_setting(

api/test/baggage/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
load("//bazel:otel_cc_benchmark.bzl", "otel_cc_benchmark")
55
load("//:dll_deps.bzl", "dll_deps")
6-
load("//bazel:otel_cc.bzl", "otel_cc_binary", "otel_cc_import", "otel_cc_library", "otel_cc_shared_library", "otel_cc_test")
6+
load("//bazel:otel_cc.bzl", "otel_cc_test")
77

88
otel_cc_test(
99
name = "baggage_test",

api/test/baggage/propagation/BUILD

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# Copyright The OpenTelemetry Authors
22
# SPDX-License-Identifier: Apache-2.0
33

4-
load("//bazel:otel_cc_benchmark.bzl", "otel_cc_benchmark")
54
load("//:dll_deps.bzl", "dll_deps")
6-
load("//bazel:otel_cc.bzl", "otel_cc_binary", "otel_cc_import", "otel_cc_library", "otel_cc_shared_library", "otel_cc_test")
5+
load("//bazel:otel_cc.bzl", "otel_cc_test")
76

87
otel_cc_test(
98
name = "baggage_propagator_test",

api/test/common/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
load("//bazel:otel_cc_benchmark.bzl", "otel_cc_benchmark")
55
load("//:dll_deps.bzl", "dll_deps")
6-
load("//bazel:otel_cc.bzl", "otel_cc_binary", "otel_cc_import", "otel_cc_library", "otel_cc_shared_library", "otel_cc_test")
6+
load("//bazel:otel_cc.bzl", "otel_cc_test")
77

88
otel_cc_benchmark(
99
name = "spinlock_benchmark",

api/test/context/BUILD

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# Copyright The OpenTelemetry Authors
22
# SPDX-License-Identifier: Apache-2.0
33

4-
load("//bazel:otel_cc_benchmark.bzl", "otel_cc_benchmark")
54
load("//:dll_deps.bzl", "dll_deps")
6-
load("//bazel:otel_cc.bzl", "otel_cc_binary", "otel_cc_import", "otel_cc_library", "otel_cc_shared_library", "otel_cc_test")
5+
load("//bazel:otel_cc.bzl", "otel_cc_test")
76

87
otel_cc_test(
98
name = "context_test",

api/test/context/propagation/BUILD

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# Copyright The OpenTelemetry Authors
22
# SPDX-License-Identifier: Apache-2.0
33

4-
load("//bazel:otel_cc_benchmark.bzl", "otel_cc_benchmark")
54
load("//:dll_deps.bzl", "dll_deps")
6-
load("//bazel:otel_cc.bzl", "otel_cc_binary", "otel_cc_import", "otel_cc_library", "otel_cc_shared_library", "otel_cc_test")
5+
load("//bazel:otel_cc.bzl", "otel_cc_test")
76

87
otel_cc_test(
98
name = "composite_propagator_test",

api/test/core/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
load("//:dll_deps.bzl", "dll_deps")
5-
load("//bazel:otel_cc.bzl", "otel_cc_binary", "otel_cc_import", "otel_cc_library", "otel_cc_shared_library", "otel_cc_test")
5+
load("//bazel:otel_cc.bzl", "otel_cc_test")
66

77
otel_cc_test(
88
name = "timestamp_test",

api/test/logs/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
load("//:dll_deps.bzl", "dll_deps")
5-
load("//bazel:otel_cc.bzl", "otel_cc_binary", "otel_cc_import", "otel_cc_library", "otel_cc_shared_library", "otel_cc_test")
5+
load("//bazel:otel_cc.bzl", "otel_cc_test")
66

77
otel_cc_test(
88
name = "provider_test",

api/test/metrics/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
load("//:dll_deps.bzl", "dll_deps")
5-
load("//bazel:otel_cc.bzl", "otel_cc_binary", "otel_cc_import", "otel_cc_library", "otel_cc_shared_library", "otel_cc_test")
5+
load("//bazel:otel_cc.bzl", "otel_cc_test")
66

77
otel_cc_test(
88
name = "noop_sync_instrument_test",

api/test/nostd/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
load("//:dll_deps.bzl", "dll_deps")
5-
load("//bazel:otel_cc.bzl", "otel_cc_binary", "otel_cc_import", "otel_cc_library", "otel_cc_shared_library", "otel_cc_test")
5+
load("//bazel:otel_cc.bzl", "otel_cc_test")
66

77
otel_cc_test(
88
name = "function_ref_test",

0 commit comments

Comments
 (0)