Merge branch 'master' into master
This commit is contained in:
commit
1df907381d
13
BUILD.bazel
13
BUILD.bazel
@ -37,7 +37,12 @@ package(default_visibility = ["//visibility:public"])
|
|||||||
licenses(["notice"])
|
licenses(["notice"])
|
||||||
|
|
||||||
config_setting(
|
config_setting(
|
||||||
name = "win",
|
name = "windows",
|
||||||
|
values = { "cpu": "x64_windows" },
|
||||||
|
)
|
||||||
|
|
||||||
|
config_setting(
|
||||||
|
name = "windows_msvc",
|
||||||
values = {"cpu": "x64_windows_msvc"},
|
values = {"cpu": "x64_windows_msvc"},
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -65,7 +70,8 @@ cc_library(
|
|||||||
]),
|
]),
|
||||||
copts = select(
|
copts = select(
|
||||||
{
|
{
|
||||||
":win": [],
|
":windows": [],
|
||||||
|
":windows_msvc": [],
|
||||||
"//conditions:default": ["-pthread"],
|
"//conditions:default": ["-pthread"],
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
@ -76,7 +82,8 @@ cc_library(
|
|||||||
"googletest/include",
|
"googletest/include",
|
||||||
],
|
],
|
||||||
linkopts = select({
|
linkopts = select({
|
||||||
":win": [],
|
":windows": [],
|
||||||
|
":windows_msvc": [],
|
||||||
"//conditions:default": [
|
"//conditions:default": [
|
||||||
"-pthread",
|
"-pthread",
|
||||||
],
|
],
|
||||||
|
@ -45,7 +45,8 @@ cc_test(
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
linkopts = select({
|
linkopts = select({
|
||||||
"//:win": [],
|
"//:windows": [],
|
||||||
|
"//:windows_msvc": [],
|
||||||
"//conditions:default": [
|
"//conditions:default": [
|
||||||
"-pthread",
|
"-pthread",
|
||||||
],
|
],
|
||||||
|
@ -57,13 +57,15 @@ cc_test(
|
|||||||
"gtest-param-test_test.cc",
|
"gtest-param-test_test.cc",
|
||||||
],
|
],
|
||||||
) + select({
|
) + select({
|
||||||
"//:win": [],
|
"//:windows": [],
|
||||||
|
"//:windows_msvc": [],
|
||||||
"//conditions:default": [
|
"//conditions:default": [
|
||||||
"gtest-tuple_test.cc",
|
"gtest-tuple_test.cc",
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
copts = select({
|
copts = select({
|
||||||
"//:win": ["-DGTEST_USE_OWN_TR1_TUPLE=0"],
|
"//:windows": ["-DGTEST_USE_OWN_TR1_TUPLE=0"],
|
||||||
|
"//:windows_msvc": ["-DGTEST_USE_OWN_TR1_TUPLE=0"],
|
||||||
"//conditions:default": ["-DGTEST_USE_OWN_TR1_TUPLE=1"],
|
"//conditions:default": ["-DGTEST_USE_OWN_TR1_TUPLE=1"],
|
||||||
}),
|
}),
|
||||||
includes = [
|
includes = [
|
||||||
@ -73,7 +75,8 @@ cc_test(
|
|||||||
"googletest/test",
|
"googletest/test",
|
||||||
],
|
],
|
||||||
linkopts = select({
|
linkopts = select({
|
||||||
"//:win": [],
|
"//:windows": [],
|
||||||
|
"//:windows_msvc": [],
|
||||||
"//conditions:default": [
|
"//conditions:default": [
|
||||||
"-pthread",
|
"-pthread",
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user