diff options
author | juerg <juerg@google.com> | 2022-01-31 06:04:52 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-01-31 06:05:47 -0800 |
commit | 0d59673d54e198c00bc06f0dd731ae1754e0959c (patch) | |
tree | dc2a300d0de949f5dacfb474c37bdc3edc98a2d3 /cc/third_party | |
parent | 7682a6ffcd437dc1ebc630732480e812581581d1 (diff) | |
download | tink-0d59673d54e198c00bc06f0dd731ae1754e0959c.tar.gz |
Add support for darwin_arm64 cpu in curl build file.
also remove unused config_settings from cc build file.
PiperOrigin-RevId: 425347250
Diffstat (limited to 'cc/third_party')
-rw-r--r-- | cc/third_party/curl.BUILD.bazel | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/cc/third_party/curl.BUILD.bazel b/cc/third_party/curl.BUILD.bazel index be093354c..210b6321d 100644 --- a/cc/third_party/curl.BUILD.bazel +++ b/cc/third_party/curl.BUILD.bazel @@ -14,6 +14,13 @@ config_setting( values = {"cpu": "darwin"}, ) +config_setting( + name = "darwin_arm64", + values = { + "cpu": "darwin_arm64", + }, +) + cc_library( name = "curl", srcs = [ @@ -216,6 +223,9 @@ cc_library( ":mac_x86_64": [ "lib/vtls/darwinssl.c", ], + ":darwin_arm64": [ + "lib/vtls/darwinssl.c", + ], ":linux_x86_64": [ "lib/vtls/openssl.c", ], @@ -245,6 +255,9 @@ cc_library( ":mac_x86_64": [ "-fno-constant-cfstrings", ], + ":darwin_arm64": [ + "-fno-constant-cfstrings", + ], ":linux_x86_64": [ "-DCURL_MAX_WRITE_SIZE=65536", ], @@ -258,6 +271,12 @@ cc_library( "-Wl,-framework", "-Wl,Security", ], + ":darwin_arm64": [ + "-Wl,-framework", + "-Wl,CoreFoundation", + "-Wl,-framework", + "-Wl,Security", + ], ":linux_x86_64": [ "-lrt", ], |