Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
zaucy committed Apr 30, 2024
1 parent ca8f9ab commit 62dbfb5
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 35 deletions.
11 changes: 5 additions & 6 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ _COMMON_HDRS = [
"include/boost/thread/*.hpp",
"include/boost/thread/futures/*.hpp",
"include/boost/thread/csbl/*.hpp",
"include/boost/thread/executors/*.hpp"
"include/boost/thread/executors/*.hpp",
]

_WINDOWS_HDRS = [
"include/boost/thread/win32/*.hpp",
]

_POSIX_HDRS = [
"include/boost/thread/pthread/*.hpp"
"include/boost/thread/pthread/*.hpp",
]

_MAC_HDRS = [
Expand All @@ -39,7 +39,7 @@ _WINDOWS_SRCS = [

_MAC_SRCS = [
"src/pthread/once.cpp",
"src/pthread/thread.cpp"
"src/pthread/thread.cpp",
]

_POSIX_SRCS = [
Expand Down Expand Up @@ -98,17 +98,16 @@ cc_library(
"@platforms//os:windows": ["@platforms//:incompatible"],
"@platforms//os:macos": [],
"//conditions:default": ["@platforms//:incompatible"],
}),
}),
hdrs = glob(_MAC_HDRS + _COMMON_HDRS),
srcs = glob(_MAC_SRCS + _COMMON_SRCS, exclude = _COMMON_EXCLUDE_SRCS),
includes = ["include"],
defines = [
"BOOST_THREAD_DONT_USE_ATOMIC",
],
deps = _COMMON_DEPS
deps = _COMMON_DEPS,
)


cc_library(
name = "boost.thread",
hdrs = glob([
Expand Down
59 changes: 30 additions & 29 deletions test/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -29,33 +29,33 @@ _TESTS = {
"test_7720": [],
"test_7755": [],
"test_8508": [],
# Misses malloc.h which is deprecated "test_8557": [],
"test_8586": [],
"test_8596": [],
"test_8600": [],
# Misses malloc.h which is deprecated "test_8557": [],
"test_8586": [],
"test_8596": [],
"test_8600": [],
"test_8674": [],
"test_8943": [],
"test_8960": [],
"test_9079_a": [],
"test_8943": [],
"test_8960": [],
"test_9079_a": [],
# Misses iostream "test_9079_b": [],
# Misses iostream "test_9192": ["@boost.interprocess"],
# Uses boost::future which cannot compile "test_9303": ["@boost.asio"],
"test_9319": [],
"test_9711": [],
"test_9856": [],
"test_10340": [],
# Fails and is unclear why. Needs further investigation. "test_10963": [],
"test_10964": [],
"test_11053": [],
"test_11256": [],
"test_11266": [],
"test_11499": [],
"test_11611": [],
"test_11796": [],
"test_9319": [],
"test_9711": [],
"test_9856": [],
"test_10340": [],
# Fails and is unclear why. Needs further investigation. "test_10963": [],
"test_10964": [],
"test_11053": [],
"test_11256": [],
"test_11266": [],
"test_11499": [],
"test_11611": [],
"test_11796": [],
# Misses iostream "test_11818": [],
"test_12293": [],
"test_12949": [],
"test_13480b": ["@boost.variant"],
"test_12293": [],
"test_12949": [],
"test_13480b": ["@boost.variant"],
# Misses a nonexistent file from @boost.system "test_13561": [],
"test_barrier_size_fct": [],
"test_barrier_void_fct": [],
Expand Down Expand Up @@ -91,11 +91,11 @@ _TESTS = {
"test_thread": [],
# Uses boost::future which cannot compile "test_time_jumps": [],
"test_tss": [],
"test_xtime": []
"test_xtime": [],
}

_POSIX_ONLY_TESTS = {
}
}

_MAC_ONLY_TESTS = {
"test_6130": [],
Expand Down Expand Up @@ -140,7 +140,7 @@ _WINDOWS_ONLY_TESTS = {
"@platforms//os:windows": ["@platforms//:incompatible"],
"@platforms//os:macos": ["@platforms//:incompatible"],
"//conditions:default": [],
}),
}),
deps = [
"@boost.test",
"@boost.test//:unit_test_main",
Expand All @@ -162,7 +162,7 @@ _WINDOWS_ONLY_TESTS = {
"@platforms//os:windows": ["@platforms//:incompatible"],
"@platforms//os:macos": [],
"//conditions:default": ["@platforms//:incompatible"],
}),
}),
deps = [
"@boost.test",
"@boost.test//:unit_test_main",
Expand All @@ -182,12 +182,13 @@ _WINDOWS_ONLY_TESTS = {
"@platforms//os:windows": [],
"@platforms//os:macos": ["@platforms//:incompatible"],
"//conditions:default": ["@platforms//:incompatible"],
}),
}),
deps = [
"@boost.test",
"@boost.test//:unit_test_main",
"@boost.thread",
] + _WINDOWS_ONLY_TESTS[test],
# Windows needs to link statically to get rid of undefined symbols
linkstatic = True
) for test in _WINDOWS_ONLY_TESTS]
linkstatic = True,
) for test in _WINDOWS_ONLY_TESTS]

0 comments on commit 62dbfb5

Please sign in to comment.