aboutsummaryrefslogtreecommitdiff
path: root/absl/time/internal/cctz/BUILD.bazel
diff options
context:
space:
mode:
Diffstat (limited to 'absl/time/internal/cctz/BUILD.bazel')
-rw-r--r--absl/time/internal/cctz/BUILD.bazel18
1 files changed, 13 insertions, 5 deletions
diff --git a/absl/time/internal/cctz/BUILD.bazel b/absl/time/internal/cctz/BUILD.bazel
index edeabd81..0b43bb12 100644
--- a/absl/time/internal/cctz/BUILD.bazel
+++ b/absl/time/internal/cctz/BUILD.bazel
@@ -12,7 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-package(features = ["-parse_headers"])
+package(features = [
+ "header_modules",
+ "layering_check",
+ "parse_headers",
+])
licenses(["notice"])
@@ -53,10 +57,11 @@ cc_library(
"include/cctz/time_zone.h",
"include/cctz/zone_info_source.h",
],
- # OS X and iOS no longer use `linkopts = ["-framework CoreFoundation"]`
- # as (1) bazel adds it automatically, and (2) it caused problems when
- # cross-compiling for Android.
- # See https://github.com/abseil/abseil-cpp/issues/326 for details.
+ linkopts = select({
+ "@platforms//os:osx": ["-Wl,-framework,CoreFoundation"],
+ "@platforms//os:ios": ["-Wl,-framework,CoreFoundation"],
+ "//conditions:default": [],
+ }),
visibility = ["//visibility:public"],
deps = [
":civil_time",
@@ -82,6 +87,7 @@ cc_test(
deps = [
":civil_time",
"//absl/base:config",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -102,6 +108,7 @@ cc_test(
":civil_time",
":time_zone",
"//absl/base:config",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -123,6 +130,7 @@ cc_test(
":civil_time",
":time_zone",
"//absl/base:config",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)