Skip to content

Commit 546173f

Browse files
authored
Merge branch 'master' into dev/omalyshe/coverity
2 parents aa140ec + 4719ac1 commit 546173f

File tree

160 files changed

+6213
-1039
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+6213
-1039
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"

.github/labeler.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2023 Intel Corporation
1+
# Copyright (c) 2023-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.
@@ -13,6 +13,5 @@
1313
# limitations under the License.
1414

1515
allocator:
16-
- 'src/tbbmalloc/**/*'
17-
- 'src/tbbmalloc_proxy/**/*'
18-
- 'test/tbbmalloc/**/*'
16+
- changed-files:
17+
- any-glob-to-any-file: ['src/tbbmalloc/**/*', 'src/tbbmalloc_proxy/**/*', 'test/tbbmalloc/**/*']

.github/workflows/ci.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
runs-on: [ubuntu-20.04]
3838
timeout-minutes: 10
3939
steps:
40-
- uses: actions/checkout@v2
40+
- uses: actions/checkout@v4
4141
- name: Run scan
4242
run: |
4343
sudo apt update && sudo apt install -y codespell
@@ -47,7 +47,7 @@ jobs:
4747
runs-on: [ubuntu-20.04]
4848
timeout-minutes: 10
4949
steps:
50-
- uses: actions/checkout@v2
50+
- uses: actions/checkout@v4
5151
- name: Run scan
5252
run: |
5353
command -v clang-format-10
@@ -62,7 +62,7 @@ jobs:
6262
runs-on: [ubuntu-22.04]
6363
timeout-minutes: 10
6464
steps:
65-
- uses: actions/checkout@v2
65+
- uses: actions/checkout@v4
6666
- name: Install prerequisites
6767
run: |
6868
pip3 install -U Jinja2
@@ -75,7 +75,7 @@ jobs:
7575
export BUILD_TYPE=${BUILD_TYPE} && sphinx-build doc html
7676
tar -czvf html.tar.gz html/
7777
- name: Save docs
78-
uses: actions/upload-artifact@v2.2.1
78+
uses: actions/upload-artifact@v4
7979
with:
8080
name: oneTBB-html-docs-${{ env.GITHUB_SHA_SHORT }}
8181
path: html.tar.gz
@@ -90,14 +90,14 @@ jobs:
9090
needs: [documentation]
9191
steps:
9292
- name: Checkout gh-pages
93-
uses: actions/checkout@v2
93+
uses: actions/checkout@v4
9494
with:
9595
ref: gh-pages
9696
path: gh-pages
9797
- name: Set env
9898
run: echo GITHUB_SHA_SHORT=${GITHUB_SHA::8} >> $GITHUB_ENV
9999
- name: Download documetation
100-
uses: actions/download-artifact@v2
100+
uses: actions/download-artifact@v4
101101
with:
102102
name: oneTBB-html-docs-${{ env.GITHUB_SHA_SHORT }}
103103
- name: Publish to github pages
@@ -117,7 +117,7 @@ jobs:
117117
if: ${{ github.ref != 'refs/heads/master' }}
118118
runs-on: [ubuntu-20.04]
119119
steps:
120-
- uses: actions/checkout@v2
120+
- uses: actions/checkout@v4
121121
with:
122122
fetch-depth: 0
123123
- name: Run check
@@ -137,7 +137,7 @@ jobs:
137137
runs-on: [ubuntu-latest]
138138
timeout-minutes: 15
139139
steps:
140-
- uses: actions/checkout@v2
140+
- uses: actions/checkout@v4
141141
- name: Run testing
142142
run: |
143143
mkdir build && cd build
@@ -179,7 +179,7 @@ jobs:
179179
preview: 'ON'
180180
cmake_static: -DBUILD_SHARED_LIBS=OFF
181181
steps:
182-
- uses: actions/checkout@v2
182+
- uses: actions/checkout@v4
183183
- name: Run testing
184184
shell: bash
185185
run: |
@@ -198,7 +198,7 @@ jobs:
198198
fail-fast: false
199199
matrix:
200200
include:
201-
- os: macos-12
201+
- os: macos-14
202202
c_compiler: clang
203203
cxx_compiler: clang++
204204
std: 14
@@ -212,7 +212,7 @@ jobs:
212212
preview: 'ON'
213213
cmake_static: -DBUILD_SHARED_LIBS=OFF
214214
steps:
215-
- uses: actions/checkout@v2
215+
- uses: actions/checkout@v4
216216
- name: Run testing
217217
shell: bash
218218
run: |
@@ -257,7 +257,7 @@ jobs:
257257
preview: 'OFF'
258258
job_name: windows_cl2022_cxx17_relwithdebinfo_preview=OFF
259259
steps:
260-
- uses: actions/checkout@v2
260+
- uses: actions/checkout@v4
261261
- name: Run testing
262262
run: |
263263
mkdir build
@@ -295,7 +295,7 @@ jobs:
295295
build_type: debug
296296
preview: 'ON'
297297
steps:
298-
- uses: actions/checkout@v2
298+
- uses: actions/checkout@v4
299299
- name: Run testing
300300
shell: bash
301301
run: |
@@ -314,14 +314,14 @@ jobs:
314314
fail-fast: false
315315
matrix:
316316
include:
317-
- os: macos-12
317+
- os: macos-15
318318
c_compiler: clang
319319
cxx_compiler: clang++
320320
std: 14
321321
build_type: relwithdebinfo
322322
preview: 'ON'
323323
steps:
324-
- uses: actions/checkout@v2
324+
- uses: actions/checkout@v4
325325
- name: Run testing
326326
shell: bash
327327
run: |
@@ -357,7 +357,7 @@ jobs:
357357
preview: 'OFF'
358358
job_name: examples_windows_cl2022_cxx17_relwithdebinfo_preview=OFF
359359
steps:
360-
- uses: actions/checkout@v2
360+
- uses: actions/checkout@v4
361361
- name: Run testing
362362
run: |
363363
mkdir build

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
steps:
4848
- name: Harden Runner
49-
uses: step-security/harden-runner@v2.6.1
49+
uses: step-security/harden-runner@v2.10.2
5050
with:
5151
egress-policy: audit
5252

.github/workflows/issue_labeler.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ jobs:
2929
issues: write
3030
contents: read
3131
steps:
32-
- uses: github/issue-labeler@v3.2 #May not be the latest version
32+
- uses: github/issue-labeler@v3.4 #May not be the latest version
3333
with:
3434
repo-token: "${{ secrets.GITHUB_TOKEN }}"
3535
configuration-path: .github/issue_labeler.yml
3636
enable-versioned-regex: 0
37-
sync-labels: 1

.github/workflows/labeler.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,7 @@ jobs:
2424
pull-requests: write
2525
runs-on: ubuntu-latest
2626
steps:
27-
- uses: actions/labeler@v4
28-
27+
- uses: actions/checkout@v4
28+
- uses: actions/labeler@v5
29+
with:
30+
configuration-path: .github/labeler.yml

.github/workflows/ossf-scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
persist-credentials: false
4848

4949
- name: "Run analysis"
50-
uses: ossf/scorecard-action@v2.3.1
50+
uses: ossf/scorecard-action@v2.4.0
5151
with:
5252
results_file: results.sarif
5353
results_format: sarif

BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ cc_library(
3737
]),
3838
copts = ["-w"] + select({
3939
"@platforms//os:windows": [""],
40+
"@platforms//cpu:arm64": [""],
4041
"//conditions:default": ["-mwaitpkg"],
4142
}),
4243
defines =

Bazel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ load("@platforms//tools/build_defs/repo:git.bzl", "git_repository")
4040
git_repository(
4141
name = "oneTBB",
4242
branch = "master",
43-
remote = "https://github.com/oneapi-src/oneTBB/",
43+
remote = "https://github.com/uxlfoundation/oneTBB/",
4444
)
4545
```
4646

CMakeLists.txt

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ cmake_minimum_required(VERSION 3.5)
1616

1717
# Enable CMake policies
1818

19+
if (POLICY CMP0063)
20+
# The NEW behavior for this policy is to honor the visibility properties for all target types.
21+
cmake_policy(SET CMP0063 NEW)
22+
set(CMAKE_POLICY_DEFAULT_CMP0063 NEW)
23+
endif()
24+
1925
if (POLICY CMP0068)
2026
# RPATH settings do not affect install_name on macOS since CMake 3.9
2127
cmake_policy(SET CMP0068 NEW)
@@ -49,7 +55,7 @@ string(REGEX REPLACE ".*#define TBB_VERSION_MINOR ([0-9]+).*" "\\1" _tbb_ver_min
4955
string(REGEX REPLACE ".*#define TBB_VERSION_PATCH ([0-9]+).*" "\\1" _tbb_ver_patch "${_tbb_version_info}")
5056
string(REGEX REPLACE ".*#define TBB_INTERFACE_VERSION ([0-9]+).*" "\\1" TBB_INTERFACE_VERSION "${_tbb_version_info}")
5157
string(REGEX REPLACE ".*#define __TBB_BINARY_VERSION ([0-9]+).*" "\\1" TBB_BINARY_VERSION "${_tbb_version_info}")
52-
set(TBB_BINARY_MINOR_VERSION ${_tbb_ver_minor})
58+
string(REGEX REPLACE "..(..)." "\\1" TBB_BINARY_MINOR_VERSION "${TBB_INTERFACE_VERSION}")
5359
set(TBBMALLOC_BINARY_VERSION 2)
5460
set(TBBBIND_BINARY_VERSION 3)
5561

@@ -84,6 +90,11 @@ endif()
8490

8591
set(CMAKE_CXX_EXTENSIONS OFF) # use -std=c++... instead of -std=gnu++...
8692
# ---------------------------------------------------------------------------------------------------------
93+
# Setup symbol visibility properties.
94+
95+
set(CMAKE_VISIBILITY_INLINES_HIDDEN TRUE)
96+
set(CMAKE_CXX_VISIBILITY_PRESET "hidden")
97+
# ---------------------------------------------------------------------------------------------------------
8798

8899
# Detect architecture (bitness).
89100
if (CMAKE_SIZEOF_VOID_P EQUAL 4)
@@ -107,6 +118,10 @@ option(TBB_DISABLE_HWLOC_AUTOMATIC_SEARCH "Disable HWLOC automatic search by pkg
107118
option(TBB_ENABLE_IPO "Enable Interprocedural Optimization (IPO) during the compilation" ON)
108119
option(TBB_FUZZ_TESTING "Enable fuzz testing" OFF)
109120
option(TBB_INSTALL "Enable installation" ON)
121+
option(TBB_FILE_TRIM "Enable __FILE__ trim" ON)
122+
if(LINUX)
123+
option(TBB_LINUX_SEPARATE_DBG "Enable separation of the debug symbols during the build" OFF)
124+
endif()
110125
if(APPLE)
111126
option(TBB_BUILD_APPLE_FRAMEWORKS "Build as Apple Frameworks" OFF)
112127
endif()
@@ -226,6 +241,12 @@ if (TBB_ENABLE_IPO AND BUILD_SHARED_LIBS AND NOT ANDROID_PLATFORM AND NOT TBB_SA
226241
endif()
227242
endif()
228243

244+
if (TBB_FILE_TRIM)
245+
file(RELATIVE_PATH TBB_RELATIVE_BIN_PATH ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_SOURCE_DIR})
246+
file(TO_NATIVE_PATH ${CMAKE_SOURCE_DIR} NATIVE_TBB_PROJECT_ROOT_DIR)
247+
file(TO_NATIVE_PATH ${TBB_RELATIVE_BIN_PATH} NATIVE_TBB_RELATIVE_BIN_PATH)
248+
endif ()
249+
229250
set(TBB_COMPILER_SETTINGS_FILE ${CMAKE_CURRENT_SOURCE_DIR}/cmake/compilers/${CMAKE_CXX_COMPILER_ID}.cmake)
230251
if (EXISTS ${TBB_COMPILER_SETTINGS_FILE})
231252
include(${TBB_COMPILER_SETTINGS_FILE})

0 commit comments

Comments
 (0)