@@ -7,30 +7,20 @@ load("//bazel:otel_cc.bzl", "otel_cc_library")
77package (default_visibility = ["//visibility:public" ])
88
99CPP_STDLIBS = [
10- "none" ,
11- "best" ,
12- "2014" ,
1310 "2017" ,
1411 "2020" ,
1512 "2023" ,
1613]
1714
1815string_flag (
1916 name = "with_cxx_stdlib" ,
20- build_setting_default = "best " ,
17+ build_setting_default = "2017 " ,
2118 values = CPP_STDLIBS ,
2219)
2320
2421otel_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-
8064int_flag (
8165 name = "abi_version_no" ,
82- build_setting_default = 1 ,
66+ build_setting_default = 2 ,
8367)
8468
8569config_setting (
0 commit comments