Skip to content

Commit 0f2f3e5

Browse files
authored
Improve Bazel support (#1342)
- Bump platforms to 0.0.9 - Remove different name in WORKSPACE.bazel file - Add bazelized test_task test
1 parent bd0f1f9 commit 0f2f3e5

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

.bazelversion

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.0.0
1+
7.1.1

BUILD.bazel

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2021-2022 Intel Corporation
1+
# Copyright (c) 2021-2024 Intel Corporation
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -116,3 +116,16 @@ cc_library(
116116
":tbbmalloc",
117117
],
118118
)
119+
120+
cc_test(
121+
name = "test_task",
122+
srcs = [
123+
"test/tbb/test_task.cpp",
124+
] + glob([
125+
"test/common/*.h",
126+
]),
127+
includes = ["test"],
128+
deps = [
129+
":tbb",
130+
],
131+
)

MODULE.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ module(
2121
compatibility_level = 1,
2222
)
2323

24-
bazel_dep(name = "platforms", version = "0.0.8")
24+
bazel_dep(name = "platforms", version = "0.0.9")

WORKSPACE.bazel

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2021 Intel Corporation
1+
# Copyright (c) 2021-2024 Intel Corporation
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -16,4 +16,4 @@
1616
# use Bazel internally. The Bazel build can have security risks or
1717
# optimization gaps.
1818

19-
workspace(name = "oneTBB")
19+
# WORKSPACE marker file needed by Bazel

0 commit comments

Comments
 (0)