Skip to content
Snippets Groups Projects
Commit 41d68a20 authored by makdharma's avatar makdharma Committed by GitHub
Browse files

Merge pull request #10718 from makdharma/cares_osx_bazel

fix bazel build for osx
parents 4589a2eb 72c4d000
No related branches found
No related tags found
No related merge requests found
config_setting(
name = "darwin",
values = {"cpu": "darwin"},
)
cc_library(
name = "ares",
srcs = [
......@@ -53,7 +58,6 @@ cc_library(
],
hdrs = [
"ares_build.h",
"config_linux/ares_config.h",
"cares/ares.h",
"cares/ares_data.h",
"cares/ares_dns.h",
......@@ -75,12 +79,17 @@ cc_library(
"cares/bitncmp.h",
"cares/config-win32.h",
"cares/setup_once.h",
],
] + select({
":darwin": ["config_darwin/ares_config.h"],
"//conditions:default": ["config_linux/ares_config.h"],
}),
includes = [
".",
"config_linux",
"cares",
],
"cares"
] + select({
":darwin": ["config_darwin"],
"//conditions:default": ["config_linux"],
}),
linkstatic = 1,
visibility = [
"//visibility:public",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment