Skip to content

Commit

Permalink
Improve Bazel support
Browse files Browse the repository at this point in the history
- Bump platforms to 0.0.9
- Remove different name in WORKSPACE.bazel file
- Add bazelized test_task test
  • Loading branch information
Vertexwahn committed Apr 13, 2024
1 parent 224eca3 commit 7c7ef32
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.0.0
7.1.1
15 changes: 14 additions & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2021-2022 Intel Corporation
# Copyright (c) 2021-2024 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -116,3 +116,16 @@ cc_library(
":tbbmalloc",
],
)

cc_test(
name = "test_task",
srcs = [
"test/tbb/test_task.cpp",
] + glob([
"test/common/*.h",
]),
includes = ["test"],
deps = [
":tbb",
],
)
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ module(
compatibility_level = 1,
)

bazel_dep(name = "platforms", version = "0.0.8")
bazel_dep(name = "platforms", version = "0.0.9")
4 changes: 2 additions & 2 deletions WORKSPACE.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2021 Intel Corporation
# Copyright (c) 2021-2024 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -16,4 +16,4 @@
# use Bazel internally. The Bazel build can have security risks or
# optimization gaps.

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

0 comments on commit 7c7ef32

Please sign in to comment.