From 7c7ef324ef03082b6b116037abeb973c6014d4fb Mon Sep 17 00:00:00 2001 From: Vertexwahn Date: Fri, 12 Apr 2024 23:08:34 +0200 Subject: [PATCH] Improve Bazel support - Bump platforms to 0.0.9 - Remove different name in WORKSPACE.bazel file - Add bazelized test_task test --- .bazelversion | 2 +- BUILD.bazel | 15 ++++++++++++++- MODULE.bazel | 2 +- WORKSPACE.bazel | 4 ++-- 4 files changed, 18 insertions(+), 5 deletions(-) diff --git a/.bazelversion b/.bazelversion index 66ce77b7ea..21c8c7b46b 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -7.0.0 +7.1.1 diff --git a/BUILD.bazel b/BUILD.bazel index 3881d6843d..34f98eba10 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -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. @@ -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", + ], +) diff --git a/MODULE.bazel b/MODULE.bazel index 393dc0ac42..cc6698f0de 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -21,4 +21,4 @@ module( compatibility_level = 1, ) -bazel_dep(name = "platforms", version = "0.0.8") +bazel_dep(name = "platforms", version = "0.0.9") diff --git a/WORKSPACE.bazel b/WORKSPACE.bazel index 6431b29bc7..59ba39f706 100644 --- a/WORKSPACE.bazel +++ b/WORKSPACE.bazel @@ -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. @@ -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