We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93f8d10 commit b820d31Copy full SHA for b820d31
BUILD
@@ -14,6 +14,20 @@
14
15
licenses(["notice"]) # Apache License
16
17
+config_setting(
18
+ name = "osx",
19
+ constraint_values = [
20
+ "@bazel_tools//platforms:osx"
21
+ ],
22
+)
23
+
24
25
+ name = "ios",
26
27
+ "@bazel_tools//platforms:ios",
28
29
30
31
### libraries
32
33
cc_library(
@@ -51,6 +65,15 @@ cc_library(
51
65
"include/cctz/time_zone.h",
52
66
"include/cctz/zone_info_source.h",
53
67
],
68
+ linkopts = select({
69
+ "//:osx": [
70
+ "-framework Foundation",
71
72
+ "//:ios": [
73
74
75
+ "//conditions:default": [],
76
+ }),
54
77
includes = ["include"],
55
78
visibility = ["//visibility:public"],
56
79
deps = [":civil_time"],
0 commit comments