Skip to content

Commit b820d31

Browse files
Jonathan Cohendevbww
authored andcommitted
Link to CoreFoundation in time_zone (#102)
* link to CoreFoundation in TimeZone * formatting
1 parent 93f8d10 commit b820d31

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

BUILD

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,20 @@
1414

1515
licenses(["notice"]) # Apache License
1616

17+
config_setting(
18+
name = "osx",
19+
constraint_values = [
20+
"@bazel_tools//platforms:osx"
21+
],
22+
)
23+
24+
config_setting(
25+
name = "ios",
26+
constraint_values = [
27+
"@bazel_tools//platforms:ios",
28+
],
29+
)
30+
1731
### libraries
1832

1933
cc_library(
@@ -51,6 +65,15 @@ cc_library(
5165
"include/cctz/time_zone.h",
5266
"include/cctz/zone_info_source.h",
5367
],
68+
linkopts = select({
69+
"//:osx": [
70+
"-framework Foundation",
71+
],
72+
"//:ios": [
73+
"-framework Foundation",
74+
],
75+
"//conditions:default": [],
76+
}),
5477
includes = ["include"],
5578
visibility = ["//visibility:public"],
5679
deps = [":civil_time"],

0 commit comments

Comments
 (0)